Skip to main content
Version: Phaser v3.88.2

Types.Curves

EllipseCurveConfig

<static> EllipseCurveConfig

nametypeoptionaldefaultdescription
xnumberYes0The x coordinate of the ellipse.
ynumberYes0The y coordinate of the ellipse.
xRadiusnumberYes0The horizontal radius of the ellipse.
yRadiusnumberYes0The vertical radius of the ellipse.
startAnglenumberYes0The start angle of the ellipse, in degrees.
endAnglenumberYes360The end angle of the ellipse, in degrees.
clockwisebooleanYesfalseSets if the the ellipse rotation is clockwise (true) or anti-clockwise (false)
rotationnumberYes0The rotation of the ellipse, in degrees.

Type: object

Member of: Phaser.Types.Curves

Source: src/curves/typedefs/EllipseCurveConfig.js#L1


JSONCurve

<static> JSONCurve

nametypeoptionaldescription
typestringNoThe of the curve
pointsArray.<number>NoThe arrays of points like [x1, y1, x2, y2]

Type: object

Member of: Phaser.Types.Curves

Source: src/curves/typedefs/JSONCurve.js#L1
Since: 3.0.0


JSONEllipseCurve

<static> JSONEllipseCurve

nametypeoptionaldescription
typestringNoThe of the curve.
xnumberNoThe x coordinate of the ellipse.
ynumberNoThe y coordinate of the ellipse.
xRadiusnumberNoThe horizontal radius of ellipse.
yRadiusnumberNoThe vertical radius of ellipse.
startAnglenumberNoThe start angle of the ellipse, in degrees.
endAnglenumberNoThe end angle of the ellipse, in degrees.
clockwisebooleanNoSets if the the ellipse rotation is clockwise (true) or anti-clockwise (false)
rotationnumberNoThe rotation of ellipse, in degrees.

Type: object

Member of: Phaser.Types.Curves

Source: src/curves/typedefs/JSONEllipseCurve.js#L1
Since: 3.0.0


JSONPath

<static> JSONPath

nametypeoptionaldescription
typestringNoThe of the curve.
xnumberNoThe X coordinate of the curve's starting point.
ynumberNoThe Y coordinate of the path's starting point.
autoClosebooleanNoThe path is auto closed.
curvesArray.<Phaser.Types.Curves.JSONCurve>NoThe list of the curves

Type: object

Member of: Phaser.Types.Curves

Source: src/curves/typedefs/JSONPath.js#L1
Since: 3.0.0