IGradientStop
Type interface
A color stop in a gradient.
More info: Gradients
Sources
IGradientStop is an interface: it describes a shape of data and is not imported on its own.
Properties
brightenType
undefined|numberBrightens the color by this amount, from
-1to1, adding the same amount to each channel. A negative value dims it.More info: Gradients: brightness
colorType
ColorColor.
lightenType
undefined|numberLightens the color by this amount, from
-1to1:0.2moves it 20% of the way to white. A negative value darkens it.More info: Gradients: brightness
offsetType
undefined|numberWhere the color sits along the gradient, from
0(start) to1(end).Stops without an offset are spaced evenly.
opacityType
undefined|numberDefault1Opacity of the color, from
0(transparent) to1(opaque).