Color Interpolators

Linear

The LinearColorInterpolator is a generalised linear interpolator where you specify the two colours to interpolate between.

Options

Property

Type

Description

Start

Color

Color if value is 0

End

Color

Color if value is 1

Greyscale

The GreyscaleColorInterpolator is a common linear interpolator from Black -> While

public class GreyscaleInterpolator : LinearColorInterpolator, IColorInterpolator

Options

Property

Type

Description

Reverse

bool

If true, starts from white instead of black

Gold

A custom interpolator which emphasises the mid-range, going from Blue -> Yellow -> Red

Channels

Channel

Formula

Graph

Red

255x+127(1212x)255x + 127(1 - 2|\frac{1}{2} - x|)

Green

127(1212x)127(1 - 2|\frac{1}{2} - x|)

Blue

255(1x)127(1212x)255(1 - x) - 127(1 - 2|\frac{1}{2}-x|)

Options

None

Last updated