boolean (int argb1, int argb2) { if (argb1 == argb2) return true; if (argb1 == backgroundRGB || argb2 == backgroundRGB) { return dist(argb1, argb2) <= backgroundColorsDist; } return dist(argb1, argb2) <= inputColorsDist; }