Rectangle#inflate()

inflate(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
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 216)
doc_phaser
2017-02-14 11:06:58
Comments
Leave a Comment

Please login to continue.