<static> inflate(a, dx, dy) → {Phaser.Rectangle}
Increases the size of the Rectangle object by the specified amounts. The center point of the Rectangle object stays the same, and its size increases to the left and right by the dx value, and to the top and the bottom by the dy value.
Parameters
Name | Type | Description |
---|---|---|
a | Phaser.Rectangle | The Rectangle object. |
dx | number | The amount to be added to the left side of the Rectangle. |
dy | number | The amount to be added to the bottom side of the Rectangle. |
Returns
This Rectangle object.
- Source code: geom/Rectangle.js (Line 761)
Please login to continue.