Android Utililty Methods Color Lighter

List of utility methods to do Color Lighter

Description

The list of methods to do Color Lighter are organized into topic(s).

Method

intgetLighter(int colour)
get Lighter
float[] hsv = new float[3];
Color.colorToHSV(colour, hsv);
hsv[2] /= 0.5f; 
return Color.HSVToColor(hsv);
booleanisColourLight(int colour)
is Colour Light
if (colour == 0) {
    return false;
int red = Color.red(colour);
int blue = Color.blue(colour);
int green = Color.green(colour);
return (int) Math.sqrt(red * red * .241 + green * green * .691
        + blue * blue * .068) > 130;
...