Fill a rectangle with the given position and size.
name | type | description |
---|---|---|
x | number |
The x coordinate of the top-left of the rectangle. |
y | number |
The y coordinate of the top-left of the rectangle. |
width | number |
The width of the rectangle. |
height | number |
The height of the rectangle. |
This Game Object.