Rectangle Class
the Rectangle object is an area defined by its position, as indicated by its top-left corner point (x, y) and by its width and its height.
Constructor
Rectangle
(
-
x
-
y
-
width
-
height
Parameters:
-
x
Numberposition of the rectangle
-
y
Numberposition of the rectangle
-
width
Numberof the rectangle
-
height
Numberof the rectangle