# 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.
# fromObject
Two.RadialGradient.fromObject
Returns: Two.RadialGradient
Argument | Description |
---|---|
obj | Object notation of a Two.RadialGradient to create a new instance |
Create a new Two.RadialGradient from an object notation of a 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.
# copy
Two.RadialGradient.copy
Argument | Description |
---|---|
gradient | The reference Two.RadialGradient |
Copy the properties of one Two.RadialGradient onto another.
# 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.