Table of Contents

Method GenerateColorsGoldenRatioGradient

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

GenerateColorsGoldenRatioGradient(int, Gradient)

Gives a list of colors where that maximises distance on the gradient between consecutaive colors.

public static List<Color> GenerateColorsGoldenRatioGradient(int colorCount, Gradient gradient)

Parameters

colorCount int

The number of colors to generate.

gradient Gradient

The gradient to sample from.

Returns

List<Color>

A list of generated colors.

GenerateColorsGoldenRatioGradient(int, GradientHSL)

Gives a list of colors where that maximises distance on the gradient between consecutaive colors.

public static List<ColorHSL> GenerateColorsGoldenRatioGradient(int colorCount, GradientHSL gradient)

Parameters

colorCount int

The number of colors to generate.

gradient GradientHSL

The gradient to sample from.

Returns

List<ColorHSL>

A list of generated colors.