Lines Matching refs:hue
83 float hue; /* normalized to interval [0,6) */ member
101 result->hue = 4.0f + (float) (r - g) / (float) (b - g); in rgb_to_hsv()
108 result->hue = 0.0f + (float) (g - b) / (float) (r - b); in rgb_to_hsv()
115 result->hue = 6.0f - (float) (b - g) / (float) (r - g); in rgb_to_hsv()
125 result->hue = 4.0f - (float) (g - r) / (float) (b - r); in rgb_to_hsv()
132 result->hue = 2.0f - (float) (r - b) / (float) (g - b); in rgb_to_hsv()
139 result->hue = 2.0f + (float) (b - r) / (float) (g - r); in rgb_to_hsv()
146 result->hue = 0; /* arbitrary */ in rgb_to_hsv()
160 float angle1 = color1->hue * 1.04719755f; /* normalize to [0,2π] */ in color_distance()
161 float angle2 = color2->hue * 1.04719755f; /* normalize to [0,2π] */ in color_distance()
174 (color1->hue >= color2->hue in color_distance()
175 ? (color1->hue - color2->hue >= 3.0f in color_distance()
176 ? 6.0f + color2->hue - color1->hue in color_distance()
177 : color1->hue - color2->hue) in color_distance()
178 : (color2->hue - color1->hue >= 3.0f in color_distance()
179 ? 6.0f + color1->hue - color2->hue in color_distance()
180 : color2->hue - color1->hue)); in color_distance()
233 … (double)given_hsv.hue, (double)given_hsv.saturation, (double)given_hsv.brightness, in nearest_color()
234 (double)best_hsv.hue, (double)best_hsv.saturation, (double)best_hsv.brightness, in nearest_color()