Stroke a rounded rectangle with the given position, size and radius.
name | type | arguments | Default | description |
---|---|---|---|---|
x | number |
The x coordinate of the top-left of the rectangle. |
||
y | number |
The y coordinate of the top-left of the rectangle. |
||
width | number |
The width of the rectangle. |
||
height | number |
The height of the rectangle. |
||
radius | number | Phaser.Types.GameObjects.Graphics.RoundedRectRadius | <optional> | 20 |
The corner radius; It can also be an object to specify different radii for corners. |
This Game Object.