IGradientStop

Type interface

A color stop in a gradient.

Click here for more info

Inheritance

IGradientStop does not extend any other symbol.

IGradientStop is not extended by any other symbol.

Properties

brighten
#

Type undefined | number

Brightens the color by this amount, from -1 to 1, adding the same amount to each channel. A negative value dims it.

Click here for more info

color
#

Type Color

Color.

lighten
#

Type undefined | number

Lightens the color by this amount, from -1 to 1: 0.2 moves it 20% of the way to white. A negative value darkens it.

Click here for more info

offset
#

Type undefined | number

Where the color sits along the gradient, from 0 (start) to 1 (end).

Stops without an offset are spaced evenly.

opacity
#

Type undefined | number

Default 1

Opacity of the color, from 0 (transparent) to 1 (opaque).