phaser/v3/typings/geom/rectangle/Scale.d.ts

10 lines
529 B
TypeScript
Raw Normal View History

2017-01-16 21:43:07 +00:00
/**
* 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;