bgrins / spectrum

The No Hassle JavaScript Colorpicker
https://bgrins.github.io/spectrum/
MIT License
2.32k stars 588 forks source link

Support for cmyk format #453

Open codeandcats opened 8 years ago

codeandcats commented 8 years ago

We need a colour picker for working with printable documents (flyers, posters, etc) and need a colour picker with supporting for inputting and outputting colour values in CMYK.

Would be great if Spectrum supported this.

bgrins commented 8 years ago

The relevant issue for this is https://github.com/bgrins/TinyColor/issues/118. That relies on adding an extension API to tinycolor, but in the mean time you could use the functions in that issue to go to/from cmyk

bgrins commented 8 years ago

Are you wanting some specific UI for this, or just the ability to get the color in cmyk when a change happens?

codeandcats commented 8 years ago

To clarify, I need the ability for an end user (a designer) to specify CMYK values, as often designers know the exact brand colour (as CMYK values) they need to user for a client and they just need to input them. Other times they may want to use the colour palette to get a slightly darker/lighter variation of the brand colour, etc.