import android.graphics.Color;
class Main {
public static int brighter(int c) {
int r = Color.red(c);
int b = Color.blue(c);
int g = Color.green(c);
if (r == 0 && b == 0 && g == 0) {
return Color.DKGRAY;
}
if (r < 3 && r != 0) {
r = 3;
} else {
r = (int) (r / .7);
r = (r > 255) ? 255 : r;
}
if (b < 3 && b != 0) {
b = 3;
} else {
b = (int) (b / .7);
b = (b > 255) ? 255 : b;
}
if (g < 3 && g != 0) {
g = 3;
} else {
g = (int) (g / .7);
g = (g > 255) ? 255 : g;
}
return Color.rgb(r, g, b);
}
}