From 05ae18d2ff9ffd3d05ddf9e8f36d3128089349d5 Mon Sep 17 00:00:00 2001 From: kuanpan Date: Thu, 18 Jun 2026 18:52:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20pages/decoration.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/decoration.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/decoration.md b/pages/decoration.md index 5ca93d6..c84c071 100644 --- a/pages/decoration.md +++ b/pages/decoration.md @@ -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) ## 精灵的使用技巧