public Black2RedGradient(int maxCount){
  this.maxCount=maxCount;
  factor=maxCount / Math.log(maxCount);
}

public Black2RedGradient ( int maxCount ) { this . maxCount = maxCount ; factor = maxCount / Math . log ( maxCount ) ; }
setup the green gradient
