Table of Contents

Method GenerateRandomWalk

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

GenerateRandomWalk(int, Color, float, float, bool)

Generates a sequence of colors where the next color is a random offset from the previous color.

public static List<Color> GenerateRandomWalk(int colorCount, Color startColor, float minOffset, float maxOffset, bool fixLightness)

Parameters

colorCount int

The number of colors to generate.

startColor Color

The first color in the sequence.

minOffset float

The minimum offset for the random color generation.

maxOffset float

The maximum offset for the random color generation.

fixLightness bool

If true, the brightness of the start color is applied to all generated colors.

Returns

List<Color>

A list of generated colors.