public boolean isColorInArea(int color, double tolerance, int x, int y, int x2, int y2) {
		for(int xx = x; xx < x2; xx++) {
			for(int yy = y; yy < y2; yy++) {
				if(isInTolerance(getData(xx, yy), color, tolerance))
					return true;
			}
		}
		return false;
	}