给我彩虹 [英] Paint me a Rainbow

查看:102
本文介绍了给我彩虹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使一系列RGB颜色在光谱颜色范围内均匀分布?

How would you go about making a range of RGB colours evenly spaced over the spectral colour range? So as to look like a real rainbow.

推荐答案

使用HSL:修正亮度和饱和度,并将色调从0变为360,然后转换为RGB。

Use HSL instead: fix the brightness and saturation and vary the hue from 0 to 360, then convert to RGB.

HSL描述了人们感觉到的颜色。 RGB描述它们,因为它们被机器使用。所以你不能真正做任何视觉上直观使用RGB。

HSL describes colors as they are perceived by people. RGB describes them as they are used by machines. So you can't really do anything visually pleasing directly using RGB.

这篇关于给我彩虹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆