Method SampleAt
SampleAt(ColorRgb, ColorRgb, int)
Blends two colours at one of SampleCount evenly spaced positions along the ramp.
public static ColorRgb SampleAt(ColorRgb from, ColorRgb to, int index)
Parameters
fromColorRgbThe colour at the first stop.
toColorRgbThe colour at the last stop.
indexintThe sample index, from 0 to SampleCount - 1.
Returns
- ColorRgb
The blended colour.