Graphics#drawRoundedRect()

drawRoundedRect(x, y, width, height, radius)

Parameters
Name Type Description
x Number

The X coord of the top-left of the rectangle

y Number

The Y coord of the top-left of the rectangle

width Number

The width of the rectangle

height Number

The height of the rectangle

radius Number

Radius of the rectangle corners. In WebGL this must be a value between 0 and 9.

Inherited From
Source code: pixi/primitives/Graphics.js (Line 550)
doc_phaser
2017-02-14 10:49:54
Comments
Leave a Comment

Please login to continue.