给我画彩虹 [英] Paint me a Rainbow

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

问题描述

您将如何使一系列 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天全站免登陆