Table of Contents

Method GetColorAtFraction

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

GetColorAtFraction(double)

Returns the color to use at the given part of the spectrum

public Color GetColorAtFraction(double fraction)

Parameters

fraction double

Proportion of the way through the spectrum, must be between 0 and 1 (inclusive). Returns the last color if fraction is NaN.

Returns

Color

Exceptions

ArgumentOutOfRangeException