问题描述
如何HSV颜色直接转换为CMYK颜色?
How to convert HSV color directly to CMYK color?
加分提的是,这是否JavaScript库。
Bonus points for mentioning JavaScript library that does that.
我见过的唯一的HSV转换为RGB,然后RGB到CMYK的解决方案。
I've seen only solutions that convert HSV to RGB and then RGB to CMYK.
推荐答案
我所知道的是转换为RGB作为中间层,然后将其转换出你想要的格式,唯一的解决办法(CMYK-> RGB- > HSV或者HSV-> RGB-> CMYK)像你提到的。我不知道,如果这件事情做的数学或其他原因而完全这里一>是从Web工具包,将至少让你得到的转换做了库。
The only solution I'm aware of is to convert to RGB as a middle tier and then convert it out to the format you want (CMYK->RGB->HSV Or HSV->RGB->CMYK) like you mentioned. I'm not sure if it's something to do with the math or another reason entirely but here is a library from the web tool kit that will at least let you get the conversion done.
在我的部分多一点的阅读打开了这一点:
A little more reading on my part turned up this:
HSL和HSV纯粹与定义 参考一些RGB空间,它们是 不是绝对的色彩空间:指定 颜色precisely要求报告 不仅HSL或HSV值,也 RGB空间的特性 它们是基于,包括伽马 校正在使用
基本上从我可以收集HSV和HSL不能直接转换,因为他们没有绝对的色彩空间,因为他们需要的,他们是根据有意义RGB空间的元素。现在我不是一个色彩专家,但我敢说,这可能是为什么你不能直接HSV和CMYK之间的转换,我会认为这是在转换引擎的封面那张(如基于网络的过程的),似乎直接转换。
Essentially from what I can gather HSV and HSL can't be directly converted because they're not absolute colour spaces as they need elements of RGB space that they are based upon to be meaningful. Now I'm not a color expert but I would venture that this could be why you can't directly convert between HSV and CMYK and I would assume that this is the process that goes on under the covers of conversion engines (like the web based ones) that seem to convert directly.
这篇关于CMYK颜色直接HSV颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!