Properties:
Name | Type | Description |
---|---|---|
center |
PointData |
The center point of the inner circle where the gradient begins. In local coordinates by default (0-1). |
innerRadius |
number |
The radius of the inner circle where the gradient begins. |
outerCenter |
PointData |
The center point of the outer circle where the gradient ends. In local coordinates by default (0-1). |
outerRadius |
number |
The radius of the outer circle where the gradient ends. |
rotation |
number |
The rotation of the gradient in radians, useful for making the gradient elliptical. NOTE: Only applied to radial gradients used with Graphics. |
scale |
number |
The y scale of the gradient, use this to make the gradient elliptical. NOTE: Only applied to radial gradients used with Graphics. |
type |
"radial" |
The type of gradient. Must be 'radial' for radial gradients. |
Extends
Members
center PointData
The center point of the inner circle where the gradient begins. In local coordinates by default (0-1).
The radius of the inner circle where the gradient begins.
outerCenter PointData
The center point of the outer circle where the gradient ends. In local coordinates by default (0-1).
The radius of the outer circle where the gradient ends.
The rotation of the gradient in radians, useful for making the gradient elliptical. NOTE: Only applied to radial gradients used with Graphics.
The y scale of the gradient, use this to make the gradient elliptical. NOTE: Only applied to radial gradients used with Graphics.
The type of gradient. Must be 'radial' for radial gradients.