Scales the width and height of this Rectangle by the given amounts.
name | type | description |
---|---|---|
rect | Phaser.Geom.Rectangle |
The |
x | number |
The factor by which to scale the rectangle horizontally. |
y | number |
The amount by which to scale the rectangle vertically. If this is not specified, the rectangle will be scaled by the factor |
The rectangle object with updated width
and height
properties as calculated from the scaling factor(s).