clear_rect method

clear_rect

Sets all pixels in the rectangle defined by starting point (x, y) and size (width, height) to transparent black, erasing any previously drawn content.

def clear_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