Method GetColorAtFraction | Terminal.Gui v2 (original) (raw)

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 isNaN.

Returns

Color

Exceptions

ArgumentOutOfRangeException

Edit this page