Method GenerateColorsGoldenRatioGradient
GenerateColorsGoldenRatioGradient(int, Gradient)
Gives a list of colors where that maximises distance on the gradient between consecutive colors.
public static List<Color> GenerateColorsGoldenRatioGradient(int colorCount, Gradient gradient)
Parameters
Returns
GenerateColorsGoldenRatioGradient(int, GradientHSL)
Gives a list of colors where that maximises distance on the gradient between consecutive colors.
[Obsolete("Use GenerateColorsGoldenRatioGradient<TColor> instead.")]
public static List<ColorHSL> GenerateColorsGoldenRatioGradient(int colorCount, GradientHSL gradient)
Parameters
colorCount
intThe number of colors to generate.
gradient
GradientHSLThe gradient to sample from.
Returns
GenerateColorsGoldenRatioGradient<TColor>(int, Gradient<TColor>)
Gives a list of colors where that maximises distance on the gradient between consecutive colors.
[Version(2, 1, 0)]
public static List<TColor> GenerateColorsGoldenRatioGradient<TColor>(int colorCount, Gradient<TColor> gradient)
Parameters
colorCount
intThe number of colors to generate.
gradient
Gradient<TColor>The gradient to sample from.
Returns
- List<TColor>
A list of generated colors.
Type Parameters
TColor