public static Color colorBetween ( final Color c1 , final Color c2 ) { final int red = ( c1 . getRed ( ) + c2 . getRed ( ) ) / 2 ; final int green = ( c1 . getGreen ( ) + c2 . getGreen ( ) ) / 2 ; final int blue = ( c1 . getBlue ( ) + c2 . getBlue ( ) ) / 2 ; return new Color ( red , green , blue ) ; }
Creates a color that is in between two colors in terms of RGB balance .