private float limitMin(float colorComponent){
  return Math.max(0.001f,colorComponent);
}

private float limitMin ( float colorComponent ) { return Math . max ( 0.001f , colorComponent ) ; }
limit a color value to > 0 , so that when it is used as a divisor the result will not overflow .
