public static int brighter(int c){
  int r=red(c), g=green(c), b=blue(c);
  int i=(int)(1.0 / (1.0 - scale));
  if (r == 0 && g == 0 && b == 0) {
    return rgba(i,i,i,alpha(c));
  }
  if (r > 0 && r < i)   r=i;
  if (g > 0 && g < i)   g=i;
  if (b > 0 && b < i)   b=i;
  return rgba(Math.min(255,(int)(r / scale)),Math.min(255,(int)(g / scale)),Math.min(255,(int)(b / scale)),alpha(c));
}

public static int brighter ( int c ) { int r = red ( c ) , g = green ( c ) , b = blue ( c ) ; int i = ( int ) ( 1.0 / ( 1.0 - scale ) ) ; if ( r == 0 && g == 0 && b == 0 ) { return rgba ( i , i , i , alpha ( c ) ) ; } if ( r > 0 && r < i ) r = i ; if ( g > 0 && g < i ) g = i ; if ( b > 0 && b < i ) b = i ; return rgba ( Math . min ( 255 , ( int ) ( r / scale ) ) , Math . min ( 255 , ( int ) ( g / scale ) ) , Math . min ( 255 , ( int ) ( b / scale ) ) , alpha ( c ) ) ; }
get a brighter shade of an input color .
