Table of Contents

Method GenerateHarmony

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

GenerateHarmony(int, float, float, float, float, float, float, float, float, float)

Generates a random triadic color harmony. You can specify two angle offsets (from a randomly selected reference), and an angle range around each of those.

public static List<Color> GenerateHarmony(int colorCount, float offsetAngle1, float offsetAngle2, float rangeAngle0, float rangeAngle1, float rangeAngle2, float saturation, float saturationRange, float luminance, float luminanceRange)

Parameters

colorCount int

The number of colors to generate.

offsetAngle1 float

The first offset angle.

offsetAngle2 float

The second offset angle.

rangeAngle0 float

The range of the first angle.

rangeAngle1 float

The range of the second angle.

rangeAngle2 float

The range of the third angle.

saturation float

The saturation of the colors.

saturationRange float

The range of the saturation.

luminance float

The luminance of the colors.

luminanceRange float

Returns

List<Color>

Remarks

You can also specify base level saturation and luminance, and a range for each.

GenerateHarmony(int, float, float, float, float, float, float, float, float, float, float)

public static List<Color> GenerateHarmony(int colorCount, float referenceAngle, float offsetAngle1, float offsetAngle2, float rangeAngle0, float rangeAngle1, float rangeAngle2, float saturation, float saturationRange, float luminance, float luminanceRange)

Parameters

colorCount int
referenceAngle float
offsetAngle1 float
offsetAngle2 float
rangeAngle0 float
rangeAngle1 float
rangeAngle2 float
saturation float
saturationRange float
luminance float
luminanceRange float

Returns

List<Color>