Class Gradient | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Inheritance
Gradient
Inherited Members
Constructors
Gradient(IEnumerable, IEnumerable, bool)
Creates a new instance of the Gradient class which hosts a Spectrumof colors including all stops
and steps
interpolated colors between each corresponding pair.
Properties
The discrete colors that will make up the Gradient.
Methods
BuildCoordinateColorMapping(int, int, GradientDirection)
Creates a mapping starting at 0,0 and going to maxRow
and maxColumn
(inclusively) using the supplied direction
.
Note that this method is inclusive i.e. passing 1/1 results in 4 mapped coordinates.
Returns the color to use at the given part of the spectrum