更新 pages/decoration.md

This commit is contained in:
kuanpan 2026-06-18 18:52:10 +08:00
parent a51b4fea03
commit 05ae18d2ff

View File

@ -114,10 +114,15 @@
可以将精灵图的颜色与场景混合。
混合模式将进行以下计算超过255的按255算小于0按0算小数四舍五入
> 假设背景色为RGB(r1,gl,b1)
> 精灵图颜色为RGB(r2.g2.b2
> 附加add 线性减淡模式显示的颜色为RGB(r1+r2,gl+g2,b1+b2)
> 叠加mul 正片叠底模式显示的颜色为RGB(r1*r2/255.g1*g2/255.b1*b2/255)
> 反转inv 反色模式显示的颜色为RGB(rl-r2,b1-b2,gl-g2)
## 精灵的使用技巧