scale(x, y) → {Phaser.Rectangle}
Scales the width and height of this Rectangle by the given amounts.
Parameters
Name | Type | Argument | Description |
---|---|---|---|
x | number | The amount to scale the width of the Rectangle by. A value of 0.5 would reduce by half, a value of 2 would double the width, etc. | |
y | number | <optional> | The amount to scale the height of the Rectangle by. A value of 0.5 would reduce by half, a value of 2 would double the height, etc. |
Returns
This Rectangle object
- Source code: geom/Rectangle.js (Line 103)
Please login to continue.