Skip to content
Prev 324566 / 398503 Next

measuring distances between colours?

Hi John
I agree that the Lab representation is the best so far for the goal of 
perceptually
similar colors, and the approximate JND of
2.3 on the distance scale in this space is a useful, non-arbitrary 
criterion.

FWIW, your demo might better show the hex and color names adjacently, 
for direct
comparison.

cols <- c("#010101", "#EEEEEE", "#AA0000", "#00AA00", "#0000AA", "#AAAA00",
"#AA00AA", "#00AAAA")
(nms <- rgb2col(cols))
pie(rep(1, 2*length(cols)), labels=c(rbind(cols, nms)), 
col=c(rbind(cols, nms)))

-Michael
On 6/1/2013 11:31 AM, John Fox wrote: