draw_rect method

draw_rect

Draws a rectangle.

def draw_rect(self, x, y, width, height):
    ...
ParameterTypeDescription
xfloatX coordinate of upper left corner of the rectangle.
yfloatY coordinate of upper left corner of the rectangle.
widthfloatA width of the rectangle.
heightfloatA height of the rectangle.

See Also