> For the complete documentation index, see [llms.txt](https://b-hub.gitbook.io/faze/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://b-hub.gitbook.io/faze/v2.0.0/overview/rendering/icolorinterpolator.md).

# 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](/faze/v2.0.0/rendering/color-interpolators.md)

### Greyscale

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

![DrawGreyscale](https://raw.githubusercontent.com/b-faze/Faze.Rendering/master/Documentation/Wiki/Images/DrawGreyscale.png)

### Linear

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

![DrawLinearBlueRed](https://raw.githubusercontent.com/b-faze/Faze.Rendering/master/Documentation/Wiki/Images/DrawLinearBlueRed.png)

### Gold

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

![DrawGold](https://raw.githubusercontent.com/b-faze/Faze.Rendering/master/Documentation/Wiki/Images/DrawGold.png)
