spinnerlibrary/src/main/java/com/jaredrummler/materialspinner/Utils.java
static int lighter(int color, float factor) {
    int red = (int) ((Color.red(color) * (1 - factor) / 255 + factor) * 255);
    int green = (int) ((Color.green(color) * (1 - factor) / 255 + factor) * 255);
    int blue = (int) ((Color.blue(color) * (1 - factor) / 255 + factor) * 255);
    return Color.argb(Color.alpha(color), red, green, blue);
  }
/**
   * Lightens a color by a given factor.
   *
   * @param color The color to lighten
   * @param factor The factor to lighten the color. 0 will make the color unchanged. 1 will make the
   * color white.
   * @return lighter version of the specified color.
   */
Lightens a color by a given factor.
@param color The color to lighten
@param factor The factor to lighten the color. 0 will make the color unchanged. 1 will make the
color white.
@return lighter version of the specified color.
Lightens a color by a given factor . @param color The color to lighten @param factor The factor to lighten the color . 0 will make the color unchanged . 1 will make the color white . @return lighter version of the specified color .
static int lighter(int color, float factor) {
    int red = (int) ((Color.red(color) * (1 - factor) / 255 + factor) * 255);
    int green = (int) ((Color.green(color) * (1 - factor) / 255 + factor) * 255);
    int blue = (int) ((Color.blue(color) * (1 - factor) / 255 + factor) * 255);
    return Color.argb(Color.alpha(color), red, green, blue);
  }
static int lighter ( int color , float factor ) { int red = ( int ) ( ( Color . red ( color ) * ( 1 - factor ) / 255 + factor ) * 255 ) ; int green = ( int ) ( ( Color . green ( color ) * ( 1 - factor ) / 255 + factor ) * 255 ) ; int blue = ( int ) ( ( Color . blue ( color ) * ( 1 - factor ) / 255 + factor ) * 255 ) ; return Color . argb ( Color . alpha ( color ) , red , green , blue ) ; }
Lightens a color by a given factor.
Lightens a color by a given factor .