如何在Java中使用HSL色彩空间? [英] How can I use the HSL colorspace in Java?
本文介绍了如何在Java中使用HSL色彩空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看过ColorSpace类,发现常量 TYPE_HLS
(大概 只是HSL的顺序不同) 。
I've had a look at the ColorSpace class, and found the constant TYPE_HLS
(which presumably is just HSL in a different order).
我可以使用此常量从色调,饱和度和亮度创建颜色
吗?
如果没有,是否有任何Java类,或者我需要编写自己的类吗?
Can I use this constant to create a Color
from hue, saturation, and luminosity?
If not, are there any Java classes for this, or do I need to write my own?
推荐答案
找到它:
Color.getHSBColor(float h, float s, float b)
这篇关于如何在Java中使用HSL色彩空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文