且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在HSV空间中添加/混合颜色

更新时间:2023-01-27 09:36:43

老实说,我会将RGB转换为平均值该组件并转换回HSV。

Honestly, I'd convert the RGB, average the components and convert back to HSV.

这不是最有效的方式,但是您可能具有或需要RGB&HSV代码,并且RGB计算可能更简单。

It's not the most efficient way, but you'll presumably have or need RGB<->HSV code and the RGB calculation is likely to be much simpler.