RoundedRectangle

new RoundedRectangle(x, y, width, height, radius)

The Rounded Rectangle object is an area defined by its position and has nice rounded corners, as indicated by its top-left corner point (x, y) and by its width and its height.

Parameters:
Name Type Description
x Number

The X coordinate of the upper-left corner of the rounded rectangle

y Number

The Y coordinate of the upper-left corner of the rounded rectangle

width Number

The overall width of this rounded rectangle

height Number

The overall height of this rounded rectangle

radius Number

Controls the radius of the rounded corners

Source - geom/RoundedRectangle.js, line 16

Members

height :Number

Default Value:
  • 0
Source - geom/RoundedRectangle.js, line 44

radius :Number

Default Value:
  • 20
Source - geom/RoundedRectangle.js, line 51

<readonly> type :number

The const type of this object.

Source - geom/RoundedRectangle.js, line 57

width :Number

Default Value:
  • 0
Source - geom/RoundedRectangle.js, line 37

x :Number

Default Value:
  • 0
Source - geom/RoundedRectangle.js, line 23

y :Number

Default Value:
  • 0
Source - geom/RoundedRectangle.js, line 30
Phaser Copyright © 2012-2015 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-alpha10 on Thu Mar 26 2015 02:54:01 GMT+0000 (GMT Standard Time) using the DocStrap template.