Skip to content

Class ColorRamp

A row of colors to read by position, from 0 at the first stop to 1 at the last: a gauge that runs green to red, a heat map, a fading trail.

Declaration
public sealed class ColorRamp

The space neighboring stops are mixed in.

Declaration
public ColorMix Mix { get; set; }

How the color moves between neighboring stops.

Declaration
public ColorEase Ease { get; set; }

The number of stops.

Declaration
public int Count { get; }

The color at a position. Below the first stop is the first, and above the last is the last.

Declaration
public TermColor At(float position)

DarkEffekt.Terminal.TermColor

Type Name
System.Single position