GradientStop
Typeobject
Backlinks4A color stop defines a position on the gradient ramp that marks the start or stop of a color transition.
Property | Type | Required |
---|---|---|
class | string | Required |
color | Color | Required |
position | UnitInterval | Required |
midPoint | UnitInterval | Required |
position​
RequiredDescription
A number giving the position of the color stop on the gradient ramp.
Type
midPoint​
RequiredDescription
A position between the current color stop and the next one, where there is an equal mix of the two colors.
midPoint
is a percentage of the distance between the two color stops. Default value is 0.5
.
The midPoint
is ignored for the last color stop, except in the case of angular gradients.
Type