List of utility methods to do Color Adjust
int | adjustTextColor(int color) adjust Text Color if (Color.red(color) == Color.green(color) && Color.green(color) == Color.blue(color)) { int value = Color.red(color); if (value < MinBlackValue) { value = MinBlackValue; return Color.argb(Color.alpha(color), value, value, value); return color; |
int | getInverseColor(int color) get Inverse Color int grey = 255 - rgb2greyscale(color); if (grey < 128) { grey = 0; } else { grey = 255; return (grey << 16) + (grey << 8) + grey; |