convert HSL color to RGB
DWORD HSLtoRGB( double hue, double sat, double lum )
RGB value
EX1
void hsl2rgb_ex1(int hDeg, int sPercent, int lPercent) { double hh = hDeg/360.; double ss = sPercent/100.; double ll = lPercent/100.; DWORD dw = HSLtoRGB(hh, ss, ll); int nRed = GetRValue(dw); int nGreen = GetGValue(dw); int nBlue = GetBValue(dw); printf("%d %d %d\n", nRed, nGreen, nBlue); }
RGBtoHSL
origin.h