public static int saturate(int c,float saturation){
  float[] hsb=Color.RGBtoHSB(red(c),green(c),blue(c),null);
  return ColorLib.hsb(hsb[0],saturation,hsb[2]);
}

public static int saturate ( int c , float saturation ) { float [ ] hsb = Color . RGBtoHSB ( red ( c ) , green ( c ) , blue ( c ) , null ) ; return ColorLib . hsb ( hsb [ 0 ] , saturation , hsb [ 2 ] ) ; }
set the saturation of an input color .
