Skip to content

IGradientStop

Type interface

Represents an object describing color switching point in a gradiend.

Sources

IGradientStop is an interface: it describes a shape of data and is not imported on its own.

Properties

color

Type Color

Color.

offset

Type number

Offset defines where in the gradient the color should kick in. Values from 0 to 1 are possible with 0 meaning start, 0.5 half-way through the gradient, etc.

opacity

Type number

Transparency of the color. 0 - completely transparent, 1 - fully opaque.