Phaser API Documentation

  Version: 
Filter
Namespace: Graphics
Phaser.Types.GameObjects.Graphics

Type Definitions

FillStyle
Focus
Focus

Description:

Graphics fill style settings.

Properties:
name type arguments description
color number <optional>

The fill color.

alpha number <optional>

The fill alpha.

Type:
object
Focus
Focus
LineStyle
Focus
Focus

Description:

Graphics line style (or stroke style) settings.

Properties:
name type arguments description
width number <optional>

The stroke width.

color number <optional>

The stroke color.

alpha number <optional>

The stroke alpha.

Type:
object
Focus
Focus
Options
Focus
Focus

Description:

Options for the Graphics Game Object.

Properties:
name type arguments description
x number <optional>

The x coordinate of the Graphics.

y number <optional>

The y coordinate of the Graphics.

Type:
object
Since: 3.0.0
Focus
Focus
RoundedRectRadius
Focus
Focus
Properties:
name type arguments Default description
tl number <optional> 20

Top left corner radius.

tr number <optional> 20

Top right corner radius.

br number <optional> 20

Bottom right corner radius.

bl number <optional> 20

Bottom left corner radius.

Type:
object
Focus
Focus
Styles
Focus
Focus

Description:

Graphics style settings.

Properties:
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.

Type:
object
Since: 3.0.0
Focus
Focus