如何在 Mathematica 中不同颜色模型之间进行转换?
我以前从未注意到这一点,但似乎很明显,是否有某种方法可以从 Hue
转换为 RGBColor
?我寻找(规范的)HueToRGBColor
,并尝试了Hue[RGBColor[1,0,0]]
,但都无济于事。
I never noticed this before, but it seems obvious, isn't there some way to convert from, say, Hue
to RGBColor
? I looked for (the canonical) HueToRGBColor
, and I tried Hue[RGBColor[1,0,0]]
, all to no avail.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您要查找的函数是
ColorConvert< /代码>
。所以对于你的例子:
反之亦然:
The function you're looking for is
ColorConvert
. So for your example:and the reverse: