public static boolean isInTolerance(int fp, int sp, double tolerance) {
		int[] fc = getRGBData(fp);
		int[] sc = getRGBData(sp);
		return (Math.sqrt(((fc[0]-sc[0])*(fc[0]-sc[0])) + ((fc[1]-sc[1])*(fc[1]-sc[1])) + ((fc[2]-sc[2])*(fc[2]-sc[2]))) / 100) <= tolerance;
	}