Hacker News new | ask | show | jobs
by hmcfletch 4375 days ago
A ruby gem that takes an RGB triplet and gives you a color name. Been using the XKCD Color Survey dataset (http://blog.xkcd.com/2010/05/03/color-survey-results/) to find mappings for the color space to names. It has been a pretty interesting little project. Color is a pretty interesting topic.
1 comments

Hmm... Just nearest color in the CILAB colorspace? Or what?

Color is fascinating, I agree. Or rather the human perception thereof. Same with sound.

I have been experimenting with a bunch of different ways of do things, but Lab nearest neighbor is one of the ones that has been working well.

I think that the gem will have a bunch of different options so you can choose and play with different methods of doing it.