resize(width, height) → {Phaser.Rectangle}
Resize the Rectangle by providing a new width and height.
The x and y positions remain unchanged.
Parameters
Name | Type | Description |
---|---|---|
width | number | The width of the Rectangle. Should always be either zero or a positive value. |
height | number | The height of the Rectangle. Should always be either zero or a positive value. |
Returns
This Rectangle object
- Source code: geom/Rectangle.js (Line 241)
Please login to continue.