Table of Contents

Method UniformOffset

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

UniformOffset(Color, float)

Creates a color generator that generates colors randomly offset from a given color.

public static IGenerator<Color> UniformOffset(Color color, float maxChannelOffset)

Parameters

color Color

The color to base the generated colors on.

maxChannelOffset float

The maximum value the offset can be in any channel.

Returns

IGenerator<Color>