Table of Contents

Class ColorGenerator

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

Contains methods for creating color generators.

public static class ColorGenerator
Inheritance
ColorGenerator
Inherited Members

Methods

Choose(GradientHSL, IGenerator<float>)

Creates a color generator which generates colors from a HSL gradient.

Choose(Gradient, IGenerator<float>)

Creates a color generator which generates colors from a gradient.

Choose<TColor>(Gradient<TColor>, IGenerator<float>)

Creates a color generator which generates colors from a gradient.

Invert(IGenerator<Color>)

Creates a generator that inverts colors generated by the specified source.

InvertLuminance(IGenerator<ColorHSL>)

Creates a generator that inverts the luminance of HSL colors generated by the specified source.

InvertLuminance(IGenerator<Color>)

Creates a generator that inverts the luminance of colors generated by the specified source.

InvertSaturation(IGenerator<ColorHSL>)

Creates a generator that inverts the saturation of HSL colors generated by the specified source.

InvertSaturation(IGenerator<Color>)

Creates a generator that inverts the saturation of colors generated by the specified source.

Mix2(IGenerator<Color>, IGenerator<Color>, IGenerator<float>, ColorSpace)

Creates a generator that generates colors mixed from two given generators.

Mix3(IGenerator<Color>, IGenerator<Color>, IGenerator<Color>, float, IGenerator<int>, IGenerator<float>, IGenerator<float>, IGenerator<float>, ColorSpace)

Creates a generator that generates colors mixed from the colors generated by three given generators.

Mix3(Color, Color, Color, float, ColorSpace)

Creates a generator that generates colors mixed from the given colors.

OffsetHue(IGenerator<Color>, IGenerator<float>)

Creates a generator that generates colors from a given color generator, with the hue offset by amounts generated from another generator.

OffsetLuminance(IGenerator<Color>, IGenerator<float>)

Creates a generator that generates colors from a given color generator, with the luminance offset by amounts generated from another generator.

OffsetSaturation(IGenerator<Color>, IGenerator<float>)

Creates a generator that generates colors from a given color generator, with the saturation offset by amounts generated from another generator.

RGB(IGenerator<float>, IGenerator<float>, IGenerator<float>)

Creates a color generator from the specified channel generators.

RandomWalk(ColorHSL, float)

Creates a generator that generates colors as a random walk from a given color in HSL color space.

ToHSL(IGenerator<Color>)

Creates a generator that generates HSL colors from a given color generator.

ToRGB(IGenerator<ColorHSL>)

Creates a generator that generates RGB colors from a given HSL color generator.

UniformOffset(Color, float)

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

UniformRandom()

Creates a color generator that generates random colors.

UniformRandomWalk(Color, float)

Creates a generator that generates colors as a random walk from a given color.

WithAlpha(IGenerator<Color>, IGenerator<float>)

Creates a generator that generates colors from the given color generator, setting their alphas from the alpha generator.

WithHue(IGenerator<Color>, IGenerator<float>)

Creates a color generator that generates color from a source generator, setting their hue to values generated from another generator.

WithLuminance(IGenerator<Color>, IGenerator<float>)

Creates a color generator that generates color from a source generator, setting their luminance to values generated from another generator.

WithSaturation(IGenerator<Color>, IGenerator<float>)

Creates a color generator that generates color from a source generator, setting their saturation to values generated from another generator.

See Also