From 98b5707c6051ebb71430780564999bda68601d73 Mon Sep 17 00:00:00 2001 From: kuanpan Date: Thu, 18 Jun 2026 18:50:53 +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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pages/decoration.md b/pages/decoration.md index ec53bdf..3c9cd60 100644 --- a/pages/decoration.md +++ b/pages/decoration.md @@ -110,6 +110,16 @@ **时长与缓速:**同其他事件。 +##混合精灵图 +可以将精灵图的颜色与场景混合。 + +混合模式将进行以下计算(超过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) + ## 精灵的使用技巧 **1、作为场景物体**