static Color adjustColor(Color color,float hFactor,float lFactor,float sFactor){
  float h;
  float l;
  float s;
synchronized (HLS_COLOR_LOCK) {
    float[] hls=rgbToHLS(color.getRGB(),HLS_COLORS);
    h=hls[0];
    l=hls[1];
    s=hls[2];
  }
  h=Math.min(360,hFactor * h);
  l=Math.min(1,lFactor * l);
  s=Math.min(1,sFactor * s);
  return new ColorUIResource(hlsToRGB(h,l,s));
}

static Color adjustColor ( Color color , float hFactor , float lFactor , float sFactor ) { float h ; float l ; float s ; synchronized ( HLS_COLOR_LOCK ) { float [ ] hls = rgbToHLS ( color . getRGB ( ) , HLS_COLORS ) ; h = hls [ 0 ] ; l = hls [ 1 ] ; s = hls [ 2 ] ; } h = Math . min ( 360 , hFactor * h ) ; l = Math . min ( 1 , lFactor * l ) ; s = Math . min ( 1 , sFactor * s ) ; return new ColorUIResource ( hlsToRGB ( h , l , s ) ) ; }
creates and returns a new color derived from the passed in color . the transformation is done in the hls color space using the specified arguments to scale .
