gray背景改名fixColor,允许自定义颜色

This commit is contained in:
MrZ_26
2022-01-22 17:16:48 +08:00
parent ea0448af5a
commit a66bb9013a
5 changed files with 14 additions and 10 deletions

View File

@@ -1,11 +1,11 @@
--Customizable grey background
local gc=love.graphics
local back={}
local brightness=.26
local r,g,b=.26,.26,.26
function back.draw()
gc.clear(brightness,brightness,brightness)
gc.clear(r,g,b)
end
function back.event(b)
brightness=b
function back.event(_r,_g,_b)
r,g,b=_r,_g,_b
end
return back