Is there an algorithm for color mixing that works like mixing real colors?

前端 未结 7 816
野的像风
野的像风 2020-11-28 18:38

The common mixing of RGB colors is very different from mixing colors for paintings, it\'s mixing of light instead mixing of pigments.

For example:

Bl         


        
7条回答
  •  失恋的感觉
    2020-11-28 19:27

    I think your problem with combining hues is that you are doing it by adding together the two angles and dividing by two. As you've noticed, the result often makes no sense. I think you'd be better off converting the angles to Cartesian coordinates on the unit circle, averaging those, and finding the angle of the resulting point (ignoring the magnitude).

提交回复
热议问题