Table of Contents

Method WithLuminance

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

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.

public static IGenerator<Color> WithLuminance(this IGenerator<Color> source, IGenerator<float> luminance)

Parameters

source IGenerator<Color>

The source generator.

luminance IGenerator<float>

The luminance generator.

Returns

IGenerator<Color>