fill_rect method

fill_rect

Fills the specified rectangular area with the current fill style.

def fill_rect(self, x, y, w, h):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the top-left corner of the rectangle.
yfloatThe y-coordinate of the top-left corner of the rectangle.
wfloatThe width of the rectangle.
hfloatThe height of the rectangle.

See Also