halostatue/color

Add Pantone® colours

halostatue opened this issue · 3 comments

Based on the implementation added in rurabe/color_lib by @rurabe.

I'm leaning very heavily against this (despite being the one who opened it) because I don't want to get into trademark issues over Pantone colours and the appropriate reference to them and whether it is considered appropriate to do so (Pantone protects its colour names and numbers fairly jealously).

Even ignoring the licensing issues which you correctly note are non trivial, I would advise you against trying to support pantone. I don't think they can be mathematically derived, nor can the pantone names or keys even be predicted, and so you would need to maintain an ever changing table of conversions to hex (which are approximations anyway). Wouldn't really seem to fit in with the spirit of the gem.

But if you absolutely have to support it, feel free to use the table I made. I pieced it together from a couple different tables around the internet, but it's not complete.

No, I think that you're right—if there’s nothing but approximations, then it’s not something that I want to do and maintain (mime-types is hard enough to keep up-to-date and I can get most of its data from external sources). The reason I keep the X/CSS colour names is that they are well-defined.

Most of the mathematical derivations in colour are approximations that are “good enough” for most purposes.