Table of Contents

Method GenerateRandomOffset

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

GenerateRandomOffset(int, Color, float, float)

Generates a list of colours that are randoly offset from a given color.

public static List<Color> GenerateRandomOffset(int colorCount, Color startColor, float min, float max)

Parameters

colorCount int

The number of colors to generate.

startColor Color

The color to offset from.

min float

The minimum offset for the random color generation.

max float

The maximum offset for the random color generation.

Returns

List<Color>

A list of generated colors.