Searched refs:dist (Results 1 – 1 of 1) sorted by relevance
470 def dist(r1, r2): return sum((x - y)**2 for x, y in zip(r1, r2)) function488 if dist(rgb, _6cube_to_rgb(c6)) < dist(rgb, _gray_to_rgb(gray)):502 d = dist(rgb, tuple(int(round(255*c/1000))