Table of Contents

Method Blend

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

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

from ColorRgb

The colour at the first stop.

to ColorRgb

The colour at the last stop.

numerator long

The position's numerator.

denominator long

The position's denominator; must be positive.

Returns

ColorRgb

The blended colour.