Java examples for 2D Graphics:Color RGB
blend RGB Colors
//package com.java2s; import java.awt.Color; public class Main { public static Color blendRGBColors(Color c1, Color c2) { return new Color((c1.getRed() + c2.getRed()) / 2, (c1.getGreen() + c2.getGreen()) / 2, (c1.getBlue() + c2.getBlue()) / 2); }/* w w w .ja v a 2 s .com*/ }