Rectangle Class
The rectangle class.
Constructor
Rectangle ( x , y , width , height )
Parameters:
-
x
NumberThe x coordinate for the upper-left corner
-
y
NumberThe y coordinate for the upper-left corner
-
width
NumberThe width of the rectangle
-
height
NumberThe height of the rectangle
Properties
height Number
The height of the rectangle.
width Number
The width of the rectangle.
x Number
The x coordinate for the upper-left corner.
y Number
The y coordinate for the upper-left corner.