# 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
Two.RadialGradient.Properties
A list of properties that are on every Two.RadialGradient.
# center
Two.RadialGradient.center
The x and y value for where the origin of the radial gradient is.
# focal
Two.RadialGradient.focal
The x and y value for where the focal point of the radial gradient is.
# clone
Two.RadialGradient.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
Two.RadialGradient.toObject
Returns: Object
Return a JSON compatible plain object that represents the path.