Table of Contents

Constructor ColorHSL

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

ColorHSL(Color)

Constructs a new ColorHSL that represents the given color.

public ColorHSL(Color color)

Parameters

color Color

ColorHSL(float, float, float)

Constructor with ColorHSL

public ColorHSL(float hue, float saturation, float luminance)

Parameters

hue float

Varies from magenta - red - yellow - green - cyan - blue - magenta, described as an value between 0.0f and 1.0f.

saturation float

Varies from 0.0f and 1.0f and describes how "grey" the colour is, with 0 being completely unsaturated (grey, white or black) and 1 being completely saturated

luminance float

Varies from 0.0f and 1.0f and ranges from black at 0.0f, through the standard colour itself at 0.5 to white at 1.0f