Adding Colours (Colors) Together like Paint (Blue + Yellow = Green, etc)

前端 未结 5 1716
挽巷
挽巷 2021-01-05 14:32

I\'m making an iOS game using cocos2d libraries.

Lets say you have two objects that have two separate colours - defined in RGB as

Blue:    0,0,255
Ye         


        
5条回答
  •  -上瘾入骨i
    2021-01-05 15:09

    I think, it is worth to try HSL color space. When adding colors we interpolate their Hue values (even taking in account objects weights). If the colors are 100% saturated, Luminance and Saturation values will be equal.

提交回复
热议问题