stroke_rect method

stroke_rect

Paints a rectangle which has a starting point at (x, y) and has a w width and an h height onto the canvas, using the current stroke style.

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