Table of Contents

Method SampleAt

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

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

from ColorRgb

The colour at the first stop.

to ColorRgb

The colour at the last stop.

index int

The sample index, from 0 to SampleCount - 1.

Returns

ColorRgb

The blended colour.