Lines Matching defs:color2
399 * @param color2 The second color
405 protected final Color getDerivedColor(Color color1, Color color2,
407 int argb = deriveARGB(color1, color2, midPoint);
420 * @param color2 The second color
425 protected final Color getDerivedColor(Color color1, Color color2,
427 return getDerivedColor(color1, color2, midPoint, true);
473 * @param color2 The second color
478 static int deriveARGB(Color color1, Color color2, float midPoint) {
480 Math.round((color2.getRed() - color1.getRed()) * midPoint);
482 Math.round((color2.getGreen() - color1.getGreen()) * midPoint);
484 Math.round((color2.getBlue() - color1.getBlue()) * midPoint);
486 Math.round((color2.getAlpha() - color1.getAlpha()) * midPoint);