Graphics

.GameObjects. Graphics

Type Definitions

FillStyle

Since:
  • 3.0.0
Properties:
Name Type Attributes Description
color number <optional>
填充颜色.
alpha number <optional>
填充阿尔法.
图形填充样式设置.
Type:
  • object

LineStyle

Since:
  • 3.0.0
Properties:
Name Type Attributes Description
width number <optional>
笔画宽度.
color number <optional>
笔画颜色.
alpha number <optional>
笔画阿尔法.
图形线条样式(或笔画样式)设置.
Type:
  • object

Options

Since:
  • 3.0.0
Properties:
Name Type Attributes Description
x number <optional>
图形的x坐标.
y number <optional>
图形的y坐标.
图形游戏对象的选项.
Type:
  • object

RoundedRectRadius

Since:
  • 3.11.0
Properties:
Name Type Attributes Default Description
tl number <optional>
20 左上角半径.
tr number <optional>
20 右上角半径.
br number <optional>
20 右下角半径.
bl number <optional>
20 左下角半径.
Type:
  • object

Styles

Since:
  • 3.0.0
Properties:
Name Type Attributes Description
lineStyle Phaser.Types.GameObjects.Graphics.LineStyle <optional>
应用于形状轮廓的样式.
fillStyle Phaser.Types.GameObjects.Graphics.FillStyle <optional>
应用于形状区域的样式.
图形样式设置.
Type:
  • object