Properties:
Name | Type | Default | Description |
---|---|---|---|
alpha |
number |
1
|
Alpha value for the gradient. |
angle |
number |
90
|
Angle for linear gradients, in degrees. |
maxColors |
number |
0
|
Maximum number of colors to render (0 = no limit) |
replace |
boolean |
false
|
If true, the gradient will replace the existing color, otherwise it will be multiplied with it |
stops |
ColorStop[] |
Collection of stops, must be 2+ |
|
type |
number |
ColorGradientFilter.LINEAR
|
Linear = 0, Radial = 1, Conic = 2 |
Members
Alpha value for the gradient.
- Default Value:
- 1
Angle for linear gradients, in degrees.
- Default Value:
- 90
Maximum number of colors to render (0 = no limit)
- Default Value:
- 0
If true, the gradient will replace the existing color, otherwise it will be multiplied with it
- Default Value:
- false
stops ColorStop[]
Collection of stops, must be 2+
Linear = 0, Radial = 1, Conic = 2
- Default Value:
- ColorGradientFilter.LINEAR