类似颜色阴影代码 [英] Similar Color Shades codes
问题描述
如果我在网站上看到一个特定的红色,我怎么知道相同的颜色在不同的颜色?绿色或类似的例子?
If I see a particular shade of red on a website, how do I find out what the same shade will be in a different color? Example in Green or such?
推荐答案
为了在不同的色调中看到相同的阴影(饱和度和亮度),将颜色转换为HSV或HSB,然后增加/减少Hue值。
To see the same shade (saturation and brilliance) in different hues, convert the color to HSV or HSB, and then increment/decrement the Hue value.
此网页介绍如何将RGB转换为HSV,甚至包括示例C代码。
This web page describes how to convert RGB to HSV, and even includes sample C code.
http://en.literateprograms.org/RGB_to_HSV_color_space_conversion_% 28C%29
...虽然您可能会在网路上找到更多实用的演算法/程式码片段。
...Though you might find more useful algorithms/snippets on the web.
http://www.google.com/search?q = Convert + RGB + to + HSV
这篇关于类似颜色阴影代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!