Lines Matching refs:color1
398 * @param color1 The first color
405 protected final Color getDerivedColor(Color color1, Color color2,
407 int argb = deriveARGB(color1, color2, midPoint);
419 * @param color1 The first color
425 protected final Color getDerivedColor(Color color1, Color color2,
427 return getDerivedColor(color1, color2, midPoint, true);
472 * @param color1 The first color
478 static int deriveARGB(Color color1, Color color2, float midPoint) {
479 int r = color1.getRed() +
480 Math.round((color2.getRed() - color1.getRed()) * midPoint);
481 int g = color1.getGreen() +
482 Math.round((color2.getGreen() - color1.getGreen()) * midPoint);
483 int b = color1.getBlue() +
484 Math.round((color2.getBlue() - color1.getBlue()) * midPoint);
485 int a = color1.getAlpha() +
486 Math.round((color2.getAlpha() - color1.getAlpha()) * midPoint);