I want to get a colour name based on some RGB values. How can I accomplish this?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
It is possible.
It is enough to prepare a list of colors tagged with names in RGB. Then find the color that is nearest by some metric. Euclidean distance will do.
There is an article from xkcd with a color survey. They even give you the survey database to fiddle around with. Quality of data is not guaranteed but a good base nevertheless.