private int interpolateColor(double lerp,int val1,int val2){
  return (int)(lerp * (double)val1 + (1.0D - lerp) * (double)val2);
}

private int interpolateColor ( double lerp , int val1 , int val2 ) { return ( int ) ( lerp * ( double ) val1 + ( 1.0D - lerp ) * ( double ) val2 ) ; }
linearly interpolates between two integers
