RGB range for cold and warm colors?

前端 未结 5 753
臣服心动
臣服心动 2020-12-23 19:30

What are ranges of cold and warm colors (http://www.diy-bathroom-remodel.com/images/color_wheel.gif) in RGB?

5条回答
  •  鱼传尺愫
    2020-12-23 20:28

    Simple and accurate:

        def is_hot(a):
            return (a[..., 'RED'] > 128)
    

    where 'RED' stands for the index of the red channel in the array a.

    This works -- you can see for yourself by: (a) looking at the second wheel by Fabian Fagerholm and/or (b) go to the following link and move the bar up and down towards the two warm ends.

    https://www.colorspire.com/rgb-color-wheel/

提交回复
热议问题