Update dvdlogo.lua

This commit is contained in:
LDDestroier 2020-02-08 22:40:41 -05:00 committed by GitHub
parent 634dc7d7e1
commit b04de3564e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -8,6 +8,7 @@ end
local xMargin, yMargin = 0, 0
local redrawDelay = nil
local changeColors = true
local scr_x, scr_y = term.getSize()
local max, min = math.max, math.min
@ -137,7 +138,11 @@ local tick = function()
logo.yvel = -logo.yvel
color = math.random(1, 15)
end
render(string.sub("0123456789abcdef", color, color))
if changeColors then
render(string.sub("0123456789abcdef", color, color))
else
render()
end
end
term.setBackgroundColor(colors.black)