Constructor ColorHSL
ColorHSL(Color)
Constructs a new ColorHSL that represents the given color.
public ColorHSL(Color color)
Parameters
colorColor
ColorHSL(float, float, float)
Constructor with ColorHSL
public ColorHSL(float hue, float saturation, float luminance)
Parameters
huefloatVaries from magenta - red - yellow - green - cyan - blue - magenta, described as an value between 0.0f and 1.0f.
saturationfloatVaries 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
luminancefloatVaries 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