Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要得到一个 HSL 的 RGB 和 SL 都最大。(从 125、100、100 获取 RGB)
所以,只是色调在变化。
有一个简单的公式吗?
谢谢
在 HSL 颜色模式下,如果 L = 100,则 S = 0 且 H = 未定义。
请参阅http://en.wikipedia.org/wiki/HSL_and_HSV末尾的转换为 RGB
是的,有一个公式。RGB = (255, 255, 255)。当 L 为 100(最大值)时,无论色相如何,甚至饱和度如何,您的 R、G、B 都会达到最大值(即白色)。