The LinearColorInterpolator is a generalised linear interpolator where you specify the two colours to interpolate between.
LinearColorInterpolator
Property
Type
Description
Start
Color
Color if value is 0
End
Color if value is 1
The GreyscaleColorInterpolator is a common linear interpolator from Black -> While
GreyscaleColorInterpolator
Reverse
bool
If true, starts from white instead of black
A custom interpolator which emphasises the mid-range, going from Blue -> Yellow -> Red
Channel
Formula
Graph
Red
255x+127(1−2∣12−x∣)255x + 127(1 - 2|\frac{1}{2} - x|)255x+127(1−2∣21−x∣)
Green
127(1−2∣12−x∣)127(1 - 2|\frac{1}{2} - x|)127(1−2∣21−x∣)
Blue
255(1−x)−127(1−2∣12−x∣)255(1 - x) - 127(1 - 2|\frac{1}{2}-x|)255(1−x)−127(1−2∣21−x∣)
None
Last updated 4 years ago
public class GreyscaleInterpolator : LinearColorInterpolator, IColorInterpolator