mirror of https://github.com/LDDestroier/CC/
Update dvdlogo.lua
This commit is contained in:
parent
634dc7d7e1
commit
b04de3564e
|
@ -8,6 +8,7 @@ end
|
||||||
local xMargin, yMargin = 0, 0
|
local xMargin, yMargin = 0, 0
|
||||||
|
|
||||||
local redrawDelay = nil
|
local redrawDelay = nil
|
||||||
|
local changeColors = true
|
||||||
|
|
||||||
local scr_x, scr_y = term.getSize()
|
local scr_x, scr_y = term.getSize()
|
||||||
local max, min = math.max, math.min
|
local max, min = math.max, math.min
|
||||||
|
@ -137,7 +138,11 @@ local tick = function()
|
||||||
logo.yvel = -logo.yvel
|
logo.yvel = -logo.yvel
|
||||||
color = math.random(1, 15)
|
color = math.random(1, 15)
|
||||||
end
|
end
|
||||||
render(string.sub("0123456789abcdef", color, color))
|
if changeColors then
|
||||||
|
render(string.sub("0123456789abcdef", color, color))
|
||||||
|
else
|
||||||
|
render()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
term.setBackgroundColor(colors.black)
|
term.setBackgroundColor(colors.black)
|
||||||
|
|
Loading…
Reference in New Issue