phaser/v3/typings/geom/rectangle/Scale.d.ts
2017-01-16 22:43:07 +01:00

9 lines
529 B
TypeScript

/**
* Scales the width and height of this Rectangle by the given amounts.
*
* @method Phaser.Rectangle#scale
* @param {number} x - 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.
* @param {number} [y] - 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.
* @return {Phaser.Rectangle} This Rectangle object
*/
export default function (rect: any, x: any, y: any): any;