List of utility methods to do Color Lighter
int | getLighter(int colour) get Lighter float[] hsv = new float[3]; Color.colorToHSV(colour, hsv); hsv[2] /= 0.5f; return Color.HSVToColor(hsv); |
boolean | isColourLight(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; ... |