static bool rgbAllPixelsInAreaEqualToOneOf(RGBImage img, int x1, int y1, int x2, int y2, int... color) { for (int c : color) if (rgbAllPixelsInAreaEqualTo(img, x1, y1, x2, y2, c)) true; false; }