Class Gradient
Describes a Spectrum of colors that can be combined to make a color gradient. Use BuildCoordinateColorMapping(int, int, GradientDirection) to create into gradient fill area maps.
public class Gradient
- Inheritance
-
Gradient
- Inherited Members
Constructors
- Gradient(IEnumerable<Color>, IEnumerable<int>, bool)
Creates a new instance of the Gradient class which hosts a Spectrum of colors including all
stops
andsteps
interpolated colors between each corresponding pair.
Properties
Methods
- BuildCoordinateColorMapping(int, int, GradientDirection)
Creates a mapping starting at 0,0 and going to
maxRow
andmaxColumn
(inclusively) using the supplieddirection
.Note that this method is inclusive i.e. passing 1/1 results in 4 mapped coordinates.
- GetColorAtFraction(double)
Returns the color to use at the given part of the spectrum