Namespace: Curves

Phaser.Types. Curves

Type Definitions


EllipseCurveConfig

Type:
  • object
Properties:
Name Type Argument Default Description
x number <optional>
0

The x coordinate of the ellipse.

y number <optional>
0

The y coordinate of the ellipse.

xRadius number <optional>
0

The horizontal radius of the ellipse.

yRadius number <optional>
0

The vertical radius of the ellipse.

startAngle number <optional>
0

The start angle of the ellipse, in degrees.

endAngle number <optional>
360

The end angle of the ellipse, in degrees.

clockwise boolean <optional>
false

Sets if the the ellipse rotation is clockwise (true) or anti-clockwise (false)

rotation number <optional>
0

The rotation of the ellipse, in degrees.

Source: src/curves/typedefs/EllipseCurveConfig.js (Line 1)

JSONCurve

Type:
  • object
Properties:
Name Type Description
type string

The of the curve

points Array.<number>

The arrays of points like [x1, y1, x2, y2]

Since: 3.0.0
Source: src/curves/typedefs/JSONCurve.js (Line 1)

JSONEllipseCurve

Type:
  • object
Properties:
Name Type Description
type string

The of the curve.

x number

The x coordinate of the ellipse.

y number

The y coordinate of the ellipse.

xRadius number

The horizontal radius of ellipse.

yRadius number

The vertical radius of ellipse.

startAngle number

The start angle of the ellipse, in degrees.

endAngle number

The end angle of the ellipse, in degrees.

clockwise boolean

Sets if the the ellipse rotation is clockwise (true) or anti-clockwise (false)

rotation number

The rotation of ellipse, in degrees.

Since: 3.0.0
Source: src/curves/typedefs/JSONEllipseCurve.js (Line 1)

JSONPath

Type:
  • object
Properties:
Name Type Description
type string

The of the curve.

x number

The X coordinate of the curve's starting point.

y number

The Y coordinate of the path's starting point.

autoClose boolean

The path is auto closed.

curves Array.<Phaser.Types.Curves.JSONCurve>

The list of the curves

Since: 3.0.0
Source: src/curves/typedefs/JSONPath.js (Line 1)