rect method

rect

Adds a rectangle to the path.

def rect(self, x, y, width, height):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the upper-left corner of the rectangle.
yfloatThe y-coordinate of the upper-left corner of the rectangle.
widthfloatThe width of the rectangle.
heightfloatThe height of the rectangle.

See Also