Table of Contents

Method GenerateRandomHueInRange

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

GenerateRandomHueInRange(int, float, float, float, float)

Generates a color with random hue in the given range, given saturation and given luminance.

public static List<Color> GenerateRandomHueInRange(int colorCount, float startHue, float endHue, float saturation, float luminance)

Parameters

colorCount int

The number of colors to generate.

startHue float

The start hue of the colors.

endHue float
saturation float

The saturation of the colors.

luminance float

The luminance of the colors.

Returns

List<Color>

A list of generated colors.