def color_match_threshold(pxl, ink, thresh):
	""" Returns True if both colors match, within threshhold
	"""
	diff = [0, 0, 0]
	diff[0] = abs(pxl[0] - ink[0])
	diff[1] = abs(pxl[1] - ink[1])
	diff[2] = abs(pxl[2] - ink[2])
	#print diff
	if(diff[0]+diff[1]+diff[2]) <= thresh:
		return True
	return False