private double doubleValueLeftColor ( double color , double right ) { return rgba ( doubleValue ( red ( color ) , right ) , // doubleValue ( green ( color ) , right ) , // doubleValue ( blue ( color ) , right ) , 1 ) ; }
Calculate a color on left with a number on the right side . The calculation occur for every color channel .