lentil.rectangle#
- lentil.rectangle(shape, width, height, shift=(0, 0), angle=0, antialias=True)[source]#
Draw a rectangle
- Parameters:
shape (array_like) – Size of output in pixels (nrows, ncols)
width (float) – Width of rectangle in pixels
height (float) – Height of rectangle in pixels
shift (tuple of floats, optional) – How far to shift center in (rows, cols). Default is (0, 0).
angle (float, optional) – Rotation of rectangle in degrees counterclockwise from horizontal. Default is 0.
antialias (bool, optional) – If True (default), the shape edges are antialiased.
- Return type:
ndarray