Lines Matching defs:hue
69 float hue; /* normalized to interval [0,6) */
87 result->hue = 4.0f + (float) (r - g) / (float) (b - g);
94 result->hue = 0.0f + (float) (g - b) / (float) (r - b);
101 result->hue = 6.0f - (float) (b - g) / (float) (r - g);
111 result->hue = 4.0f - (float) (g - r) / (float) (b - r);
118 result->hue = 2.0f - (float) (r - b) / (float) (g - b);
125 result->hue = 2.0f + (float) (b - r) / (float) (g - r);
132 result->hue = 0; /* arbitrary */
146 float angle1 = color1->hue * 1.04719755f; /* normalize to [0,2��] */
147 float angle2 = color2->hue * 1.04719755f; /* normalize to [0,2��] */
157 /* Formula that considers hue differences with more weight than saturation
160 (color1->hue >= color2->hue
161 ? (color1->hue - color2->hue >= 3.0f
162 ? 6.0f + color2->hue - color1->hue
163 : color1->hue - color2->hue)
164 : (color2->hue - color1->hue >= 3.0f
165 ? 6.0f + color1->hue - color2->hue
166 : color2->hue - color1->hue));
219 (double)given_hsv.hue, (double)given_hsv.saturation, (double)given_hsv.brightness,
220 (double)best_hsv.hue, (double)best_hsv.saturation, (double)best_hsv.brightness,