Blend RGB color function in Java