public void lighterColor(int factor){
  int color=getColor();
  int r=color >> 16 & 0xff;
  int g=color >> 8 & 0xff;
  int b=color & 0xff;
  r=Math.min(0xff,r + factor);
  g=Math.min(0xff,g + factor);
  b=Math.min(0xff,b + factor);
  setColor(((r << 16) & 0xff0000) | ((g << 8) & 0xff00) | (b & 0xff));
}

public void lighterColor ( int factor ) { int color = getColor ( ) ; int r = color > > 16 & 0xff ; int g = color > > 8 & 0xff ; int b = color & 0xff ; r = Math . min ( 0xff , r + factor ) ; g = Math . min ( 0xff , g + factor ) ; b = Math . min ( 0xff , b + factor ) ; setColor ( ( ( r << 16 ) & 0xff0000 ) | ( ( g << 8 ) & 0xff00 ) | ( b & 0xff ) ) ; }
makes the current color slightly lighter , this is useful for many visual effects
