Lines Matching defs:hue
66 float hue; /* normalized to interval [0,6) */
84 result->hue = 4.0f + (float) (r - g) / (float) (b - g);
91 result->hue = 0.0f + (float) (g - b) / (float) (r - b);
98 result->hue = 6.0f - (float) (b - g) / (float) (r - g);
108 result->hue = 4.0f - (float) (g - r) / (float) (b - r);
115 result->hue = 2.0f - (float) (r - b) / (float) (g - b);
122 result->hue = 2.0f + (float) (b - r) / (float) (g - r);
129 result->hue = 0; /* arbitrary */
143 float angle1 = color1->hue * 1.04719755f; /* normalize to [0,2��] */
144 float angle2 = color2->hue * 1.04719755f; /* normalize to [0,2��] */
154 /* Formula that considers hue differences with more weight than saturation
157 (color1->hue >= color2->hue
158 ? (color1->hue - color2->hue >= 3.0f
159 ? 6.0f + color2->hue - color1->hue
160 : color1->hue - color2->hue)
161 : (color2->hue - color1->hue >= 3.0f
162 ? 6.0f + color1->hue - color2->hue
163 : color2->hue - color1->hue));
216 (double)given_hsv.hue, (double)given_hsv.saturation, (double)given_hsv.brightness,
217 (double)best_hsv.hue, (double)best_hsv.saturation, (double)best_hsv.brightness,