Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Path

ellipseTo([xRadius], [yRadius], [startAngle], [endAngle], [clockwise], [rotation])

Description:

Creates an ellipse curve positioned at the previous end point, using the given parameters.

Parameters:

name type arguments Default description
xRadius number <optional> 0

The horizontal radius of ellipse.

yRadius number <optional> 0

The vertical radius of 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

Whether the ellipse angles are given as clockwise (true) or counter-clockwise (false).

rotation number <optional> 0

The rotation of the ellipse, in degrees.

Returns:
Description:

This Path object.

Since: 3.0.0
Source: src/curves/path/Path.js (Line 300)