整理代码

This commit is contained in:
MrZ626
2021-11-12 03:30:52 +08:00
parent 87c791b8c7
commit ab386bb53c
2 changed files with 4 additions and 6 deletions

View File

@@ -12,10 +12,9 @@ local ins,rem=table.insert,table.remove
local back={}
local t
local fan,petal
local petal
function back.init()
t=0
fan=SVG_TITLE_FAN
petal={}
end
function back.update()
@@ -62,7 +61,7 @@ function back.draw()
gc_setLineWidth(6)
gc_setColor(.8,.9,1,.3)
for i=1,8 do gc_polygon('line',fan[i])end
for i=1,8 do gc_polygon('line',SVG_TITLE_FAN[i])end
gc_setLineWidth(2)
gc_setColor(1,.5,.7,.3)

View File

@@ -164,7 +164,6 @@ function scene.draw()
else
gc.setLineWidth(4)
end
local L=SVG_TITLE
gc.push('transform')
gc.translate(126,100)
for i=1,8 do
@@ -177,9 +176,9 @@ function scene.draw()
gc.translate(0,math.abs(10-dt)-10)
end
gc.setColor(titleColor[i][1],titleColor[i][2],titleColor[i][3],min(t*.025,1)*.2)
gc.polygon('fill',L[i])
gc.polygon('fill',SVG_TITLE[i])
gc.setColor(1,1,1,min(t*.025,1))
gc.polygon('line',L[i])
gc.polygon('line',SVG_TITLE[i])
gc.pop()
end
end