Lines Matching defs:blue
125 * @param blue the blue component of the color
126 * @return the smaller of {@code red}, {@code green} and {@code blue}
128 static float min(float red, float green, float blue) {
130 return (min < blue) ? min : blue;
138 * @param blue the blue component of the color
139 * @return the larger of {@code red}, {@code green} and {@code blue}
141 static float max(float red, float green, float blue) {
143 return (max > blue) ? max : blue;
151 * @param blue the blue component of the color
152 * @param max the larger of {@code red}, {@code green} and {@code blue}
153 * @param min the smaller of {@code red}, {@code green} and {@code blue}
156 static float getHue(float red, float green, float blue, float max, float min) {
160 hue = (green - blue) / hue;
166 hue = 2.0f + (blue - red) / hue;
168 else /*max == blue*/ {