lentil.circle

lentil.circle(shape, radius, shift=(0, 0))[source]

Compute a circle with anti-aliasing.

Parameters
  • shape (array_like) – Size of output in pixels (nrows, ncols)

  • radius (float) – Radius of circle in pixels

  • shift ((2,) array_like, optional) – How far to shift center in float (rows, cols). Default is (0, 0).

Returns

circle

Return type

ndarray