Table of Contents

Method RandomMix

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

RandomMix(Color, Color, Color, float, ColorSpace)

Generates a color that is a random mix of the given colors.

public static Color RandomMix(Color color1, Color color2, Color color3, float greyControl, ColorSpace mixMode)

Parameters

color1 Color

The first color to mix.

color2 Color

The second color to mix.

color3 Color

The third color to mix.

greyControl float

Controls how likely the color will contains fair amounts of each color (tending to make it grey).

mixMode ColorSpace

The color space to mix in.

Returns

Color

The generated color.