Searched refs:RGBMAX (Results 1 – 1 of 1) sorted by relevance
177 const int RGBMAX = 255; in hls_to_rgb() local181 R = G = B = (lum * RGBMAX) / HLSMAX; in hls_to_rgb()190 R = (hue_to_rgb(Magic1, Magic2, hue + (HLSMAX / 3)) * RGBMAX + (HLSMAX / 2)) / HLSMAX; in hls_to_rgb()191 G = (hue_to_rgb(Magic1, Magic2, hue) * RGBMAX + (HLSMAX / 2)) / HLSMAX; in hls_to_rgb()192 B = (hue_to_rgb(Magic1, Magic2, hue - (HLSMAX / 3)) * RGBMAX + (HLSMAX/2)) / HLSMAX; in hls_to_rgb()