forked from RDCNWebs/rd.rdlevel.cn
更新 pages/decoration.md
This commit is contained in:
parent
a51b4fea03
commit
05ae18d2ff
@ -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)
|
||||
|
||||
## 精灵的使用技巧
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user