IColorInterpolator

Colour interpolators implement the IColorInterpolator interface

    public interface IColorInterpolator
    {
        Color GetColor(double d);
    }

Given a number between 0 - 1, colour interpolators will map it to a colour.

Examples

For more examples, and the complete list of available colour interpolators, see Rendering.ColorInterpolators

Greyscale

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

Linear

A generalised linear interpolator where you specify the two colours to interpolate between.

Gold

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

Last updated