Phaser API Documentation

  Version: 
Filter
Namespace: Curves
Phaser.Types.Curves

Type Definitions

EllipseCurveConfig
Focus
Focus
Properties:
name type arguments 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.

Type:
object
Since: 3.0.0
Focus
Focus
JSONCurve
Focus
Focus
Properties:
name type description
type string

The of the curve

points Array.<number>

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

Type:
object
Since: 3.0.0
Focus
Focus
JSONEllipseCurve
Focus
Focus
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.

Type:
object
Since: 3.0.0
Focus
Focus
JSONPath
Focus
Focus
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

Type:
object
Since: 3.0.0
Focus
Focus