Two.Circle

Extends: Two.Path

Constructor

ArgumentDescription
xThe x position of the circle.
yThe y position of the circle.
radiusThe radius value of the circle.
resolutionThe number of vertices used to construct the circle.

Properties

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

fromObject

Returns: Two.Circle

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

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

nota-bene

Works in conjunction with Two.Circle.toObject

radius

The size of the radius of the circle.

copy

ArgumentDescription
circleThe reference Two.Circle

Copy the properties of one Two.Circle onto another.

clone

Returns: Two.Circle

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

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

toObject

Returns: Object

Return a JSON compatible plain object that represents the path.