new Rectangle(pX, pY, pWidth, pHeight)
Rectangle object.
Parameters:
Name | Type | Description |
---|---|---|
pX |
int | X position of the rectangle. |
pY |
int | Y position of the rectangle. |
pWidth |
int | Width of the rectangle. |
pHeight |
int | Height of the rectangle. |
- Source:
Members
-
height :int
-
Height of the rectangle.
Type:
- int
- Source:
-
width :int
-
Width of the rectangle.
Type:
- int
- Source:
-
x :int
-
x position.
Type:
- int
- Source:
-
y :int
-
y position.
Type:
- int
- Source:
Methods
-
destroy()
-
Destroy the rectangle and its objects.
- Source: