Lines Matching defs:red
123 * @param red the red 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) {
129 float min = (red < green) ? red : green;
136 * @param red the red 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) {
142 float max = (red > green) ? red : green;
149 * @param red the red 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) {
159 if (max == red) {
166 hue = 2.0f + (blue - red) / hue;
169 hue = 4.0f + (red - green) / hue;