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.
在 c# 中,您可以通过执行 Color.GetBrightness() 来获取颜色的 HSL 亮度。如果我想将颜色的亮度增加一定百分比,我不能简单地将单个 RGB 值乘以该数量。似乎 HSL 不能那样工作。我该怎么做?
我认为这篇文章可以帮助您解决这个问题以及所有其他与颜色相关的问题。它具有用于所有转换和修改的 C# 源代码。
RGB 和 HSL 颜色空间转换