# Two.RadialGradient

Extends: Two.Gradient

# Constructor

Argument Description
x The x position of the origin of the radial gradient.
y The y position of the origin of the radial gradient.
radius The radius of the radial gradient.
stops A list of Two.Stops that contain the gradient fill pattern for the gradient.
focalX The x position of the focal point on the radial gradient.
focalY The y position of the focal point on the radial gradient.

# Properties

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

# center

The x and y value for where the origin of the radial gradient is.

# focal

The x and y value for where the focal point of the radial gradient is.

nota-bene

This effects the spray or spread of the radial gradient.

# clone

Returns: Two.Gradient

Argument Description
parent The parent group or scene to add the clone to.

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

# toObject

Returns: Object

Return a JSON compatible plain object that represents the path.