Skip to main content

GradientStop

Typeobject
Backlinks4

A color stop defines a position on the gradient ramp that marks the start or stop of a color transition.

PropertyTypeRequired
classstringRequired
colorColorRequired
positionUnitIntervalRequired
midPointUnitIntervalRequired

class​

Required

Type

string

Value

constant: the value of this property must be equal to:

"gradientStop"

color​

Required

Description

no description

Type

Color

position​

Required

Description

A number giving the position of the color stop on the gradient ramp.

midPoint​

Required

Description

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.