整理代码,调整大量场景内绘图用的纯白色和纯黑色

This commit is contained in:
MrZ626
2021-08-06 19:16:01 +08:00
parent e6f5723ecc
commit b501cd374b
32 changed files with 91 additions and 90 deletions

View File

@@ -43,7 +43,7 @@ function scene.draw()
setFont(70)gc.setColor(1,.6,.6)
mStr(("%.2f"):format(maxSpeed),640,20)
setFont(100)gc.setColor(1,1,1)
setFont(100)gc.setColor(COLOR.Z)
mStr(("%.2f"):format(speed),640,150)
setFont(35)
@@ -64,7 +64,7 @@ function scene.draw()
gc.setColor(max(speed/maxSpeed*10-9,0),1-max(speed/maxSpeed*8-7,0),1-max(speed/maxSpeed*4-3,0))
end
gc.rectangle('fill',960,360,30,-320*max(speed/maxSpeed*4-3,0))
gc.setColor(1,1,1)
gc.setColor(COLOR.Z)
gc.rectangle('line',960,360,30,-320)
end