Method Blend
Blend(ColorRgb, ColorRgb, long, long)
Blends two colours at an arbitrary position along the ramp.
public static ColorRgb Blend(ColorRgb from, ColorRgb to, long numerator, long denominator)
Parameters
fromColorRgbThe colour at the first stop.
toColorRgbThe colour at the last stop.
numeratorlongThe position's numerator.
denominatorlongThe position's denominator; must be positive.
Returns
- ColorRgb
The blended colour.