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 (hue) component used to return the HSL color model, 0<= H< 360.

S

The Saturation(staturation) component used to return the HSL color model,0<=S<=1.

L

The Value(value) 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