RGBtoHSL
This function is used to convert the RGB color to HSL color.
void RGBtoHSL(
COLORREF rgb,
float *H,
float *S,
float *L
);
Parameters
rgb
Original RGB color.
H
The Hue component used to return the HSL color model, 0 <= H < 360.
S
The Saturation component used to return the HSL color model, 0 <= S <= 1.
L
The Lightness component used to return the HSL color model, 0 <= V <= 1.
Return Value
None
Remarks
For a detailed description of HSL, please refer to HSLtoRGB
Examples
None