Rectangle Class
The rectangle class.
Constructor
Rectangle ( x , y , width , height )
Parameters:
-
xNumberThe x coordinate for the upper-left corner
-
yNumberThe y coordinate for the upper-left corner
-
widthNumberThe width of the rectangle
-
heightNumberThe 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.