Type Definitions
-
FillStyle
-
Graphics fill style settings.
Type:
- object
- Since: 3.0.0
- Source: src/gameobjects/graphics/typedefs/FillStyle.js (Line 1)
Properties:
Name Type Argument Description colornumber <optional>
The fill color.
alphanumber <optional>
The fill alpha.
-
LineStyle
-
Graphics line style (or stroke style) settings.
Type:
- object
- Since: 3.0.0
- Source: src/gameobjects/graphics/typedefs/LineStyle.js (Line 1)
Properties:
Name Type Argument Description widthnumber <optional>
The stroke width.
colornumber <optional>
The stroke color.
alphanumber <optional>
The stroke alpha.
-
Options
-
Options for the Graphics Game Object.
Type:
- object
- Since: 3.0.0
- Source: src/gameobjects/graphics/typedefs/Options.js (Line 1)
Properties:
Name Type Argument Description xnumber <optional>
The x coordinate of the Graphics.
ynumber <optional>
The y coordinate of the Graphics.
-
RoundedRectRadius
-
Type:
- object
- Since: 3.11.0
- Source: src/gameobjects/graphics/typedefs/RoundedRectRadius.js (Line 1)
Properties:
Name Type Argument Default Description tlnumber <optional>
20 Top left corner radius.
trnumber <optional>
20 Top right corner radius.
brnumber <optional>
20 Bottom right corner radius.
blnumber <optional>
20 Bottom left corner radius.
-
Styles
-
Graphics style settings.
Type:
- object
- Since: 3.0.0
- Source: src/gameobjects/graphics/typedefs/Styles.js (Line 1)
Properties:
Name Type Argument Description lineStylePhaser.Types.GameObjects.Graphics.LineStyle <optional>
The style applied to shape outlines.
fillStylePhaser.Types.GameObjects.Graphics.FillStyle <optional>
The style applied to shape areas.
