Two.Ellipse

Extends: Two.Path

Constructor

ArgumentDescription
xThe x position of the ellipse.
yThe y position of the ellipse.
rxThe radius value of the ellipse in the x direction.
ryThe radius value of the ellipse in the y direction.
resolutionThe number of vertices used to construct the ellipse.

Properties

A list of properties that are on every Two.Ellipse.

fromObject

Returns: Two.Ellipse

ArgumentDescription
objObject notation of a Two.Ellipse to create a new instance

Create a new Two.Ellipse from an object notation of a Two.Ellipse.

nota-bene

Works in conjunction with Two.Ellipse.toObject

width

The width of the ellipse.

height

The height of the ellipse.

copy

ArgumentDescription
ellipseThe reference Two.Ellipse

Copy the properties of one Two.Ellipse onto another.

clone

Returns: Two.Ellipse

ArgumentDescription
parentThe parent group or scene to add the clone to.

Create a new instance of Two.Ellipse with the same properties of the current path.

toObject

Returns: Object

Return a JSON compatible plain object that represents the path.