rectangle
Adds a closed sub-path rectangle of the given size to the current path at position (xPos, yPos) in user-space coordinates.
Parameters
xPos
The X coordinate of the top left corner of the rectangle.
yPos
The Y coordinate of the top left corner of the rectangle.
width
The width of the rectangle.
height
The height of the rectangle.
Parameters
xPos
The X coordinate of the top left corner of the rectangle.
yPos
The Y coordinate of the top left corner of the rectangle.
width
The width of the rectangle.
height
The height of the rectangle.