fill_rect method

fill_rect

Draws a filled rectangle at (x, y) position whose size is determined by width and height.

def fill_rect(self, x, y, w, h):
    ...
ParameterTypeDescription
xfloatThe x axis of the coordinate for the rectangle starting point.
yfloatThe y axis of the coordinate for the rectangle starting point.
wfloatThe rectangle’s width.
hfloatThe rectangle’s height.

See Also