halostatue / color

Color tools for Ruby.
Other
133 stars 41 forks source link

Add Pantone® colours #3

Closed halostatue closed 10 years ago

halostatue commented 10 years ago

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

halostatue commented 10 years ago

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).

rurabe commented 10 years ago

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.

halostatue commented 10 years ago

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.