Graphics fill style settings.
name | type | arguments | description |
---|---|---|---|
color | number | <optional> |
The fill color. |
alpha | number | <optional> |
The fill alpha. |
Graphics line style (or stroke style) settings.
name | type | arguments | description |
---|---|---|---|
width | number | <optional> |
The stroke width. |
color | number | <optional> |
The stroke color. |
alpha | number | <optional> |
The stroke alpha. |
Options for the Graphics Game Object.
name | type | arguments | description |
---|---|---|---|
x | number | <optional> |
The x coordinate of the Graphics. |
y | number | <optional> |
The y coordinate of the Graphics. |
name | type | arguments | Default | description |
---|---|---|---|---|
tl | number | <optional> | 20 |
Top left corner radius. Draw concave arc if this radius is negative. |
tr | number | <optional> | 20 |
Top right corner radius. Draw concave arc if this radius is negative. |
br | number | <optional> | 20 |
Bottom right corner radius. Draw concave arc if this radius is negative. |
bl | number | <optional> | 20 |
Bottom left corner radius. Draw concave arc if this radius is negative. |
Graphics style settings.
name | type | arguments | description |
---|---|---|---|
lineStyle | Phaser.Types.GameObjects.Graphics.LineStyle | <optional> |
The style applied to shape outlines. |
fillStyle | Phaser.Types.GameObjects.Graphics.FillStyle | <optional> |
The style applied to shape areas. |