Searched refs:HLSMAX (Results 1 – 1 of 1) sorted by relevance
149 const int HLSMAX = 100; in hue_to_rgb() local152 hue += HLSMAX; in hue_to_rgb()155 if (hue > HLSMAX) { in hue_to_rgb()156 hue -= HLSMAX; in hue_to_rgb()159 if (hue < (HLSMAX / 6)) { in hue_to_rgb()160 return (n1 + (((n2 - n1) * hue + (HLSMAX / 12)) / (HLSMAX / 6))); in hue_to_rgb()162 if (hue < (HLSMAX / 2)) { in hue_to_rgb()165 if (hue < ((HLSMAX * 2) / 3)) { in hue_to_rgb()166 return (n1 + (((n2 - n1) * (((HLSMAX * 2) / 3) - hue) + (HLSMAX / 12))/(HLSMAX / 6))); in hue_to_rgb()176 const int HLSMAX = 100; in hls_to_rgb() local[all …]