简体   繁体   English

如何改变色调

[英]How to change color tone

I have read the article Introduction to Color Theory .我已经阅读了颜色理论导论一文。 Using that information, I have to change color's tone (I have to add grey color to current one) programmatically (C#, .NET).使用该信息,我必须以编程方式(C#、.NET)更改颜色的色调(我必须将灰色添加到当前色调)。 How can I do it?我该怎么做?

Tones - adding gray to a pure hue色调 - 在纯色调中添加灰色

"Adding gray" is fairly unclear. “添加灰色”相当不清楚。 Start mspaint.exe and click on Edit Colors.启动 mspaint.exe 并单击“编辑颜色”。 Click the rainbow rectangle to pick a color.单击彩虹矩形以选择一种颜色。 Keep on eye on the Hue/Sat/Lum boxes.留意色相/周六/明度框。 Drag the slider on the far right up and down and note how the Luminance changes.上下拖动最右侧的滑块并注意亮度如何变化。 You make it darker by sliding it down, perhaps that's what you mean by "adding gray".您可以通过向下滑动使其变暗,也许这就是您所说的“添加灰色”的意思。 Or maybe you mean tinkering with the Saturation.或者,也许您的意思是修补饱和度。 Try it for yourself.自己试试吧。

You transform from the RGB color space to the HSL color space and back with these formulas .您可以使用这些公式从 RGB 颜色空间转换到 HSL 颜色空间并返回。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM