D | ColorUtils.java | 29 int V = Math.max(b, Math.max(r, g)); in brightness() local 31 return (V / 255.f); in brightness() 39 int V = Math.max(b, Math.max(r, g)); in hue() local 44 if (V == temp) { in hue() 47 final float vtemp = (float) (V - temp); in hue() 48 final float cr = (V - r) / vtemp; in hue() 49 final float cg = (V - g) / vtemp; in hue() 50 final float cb = (V - b) / vtemp; in hue() 52 if (r == V) { in hue() 54 } else if (g == V) { in hue()
|