From ed2a46e0596993292b4cb652d587169b04cedc32 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 19 Jul 2021 02:12:05 +0800 Subject: [PATCH] =?UTF-8?q?intro=E5=8A=A8=E7=94=BB=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E4=B8=80=E7=82=B9=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/intro.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/parts/scenes/intro.lua b/parts/scenes/intro.lua index 3490685b..8d567d39 100644 --- a/parts/scenes/intro.lua +++ b/parts/scenes/intro.lua @@ -40,6 +40,7 @@ local titleTransform={ function(t,i)local d=max(50-t,0)gc.translate(sin(TIME()*3+626*i)*d,-cos(TIME()*3+626*i)*d)end, function(t)gc.setColor(1,1,1,min(t*.02,1)+rnd()*.2)end, } +local titleColor={COLOR.lP,COLOR.lC,COLOR.lB,COLOR.lO,COLOR.lF,COLOR.lM,COLOR.lG,COLOR.lY} function scene.draw() local T=(t1+110)%300 if T<30 then @@ -54,12 +55,14 @@ function scene.draw() local t=t1-i*15 if t>0 then gc.push('transform') - gc.setColor(1,1,1,min(t*.025,1)) titleTransform[animeType[i]](t,i) local dt=(t1+62-5*i)%300 if dt<20 then gc.translate(0,math.abs(10-dt)-10) end + gc.setColor(titleColor[i][1],titleColor[i][2],titleColor[i][3],min(t*.025,1)*.26) + gc.polygon('fill',L[i]) + gc.setColor(1,1,1,min(t*.025,1)) gc.polygon('line',L[i]) gc.pop() end