Description
Draws a rectangle to the screen. A rectangle is a four-sided shape with every angle at ninety degrees. The first two parameters set the location, the third sets the width, and the fourth sets the height.
Syntax
rect(x, y, width, height)
Parameters
x
x-coordinate of the rectangle
y
x-coordinate of the rectangle
width
width of the rectangle
height
height of the rectangle
Returns
none
Related
none