Constructor Gradient
Gradient(IEnumerable<Color>, IEnumerable<int>, bool)
Creates a new instance of the Gradient class which hosts a Spectrum
of colors including all stops and steps interpolated colors
between each corresponding pair.
public Gradient(IEnumerable<Color> stops, IEnumerable<int> steps, bool loop = false)
Parameters
stopsIEnumerable<Color>The colors to use in the spectrum (N)
stepsIEnumerable<int>The number of colors to generate between each pair (must be N-1 numbers). If only one step is passed then it is assumed to be the same distance for all pairs.
loopboolTrue to duplicate the first stop and step so that the gradient repeats itself