Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local scr_x, scr_y = term.getSize()
- inc = function(a)
- local x,y = term.getCursorPos()
- term.setCursorPos(x,y+a)
- end
- renderBG = function(scroll)
- local ivl = 5 --interval
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setBackgroundColor(colors.blue)
- term.setCursorPos(1,(scr_y/2)-4)
- term.clearLine() inc(1)
- term.clearLine() inc(1)
- term.setBackgroundColor(colors.cyan)
- term.clearLine() inc(1)
- term.setBackgroundColor(colors.lightBlue)
- term.clearLine() inc(1)
- term.setBackgroundColor(colors.cyan)
- term.clearLine() inc(1)
- term.setBackgroundColor(colors.blue)
- term.clearLine() inc(1)
- term.clearLine() inc(1)
- -- good god that was inefficient
- local pos = 1
- while pos <= scr_x do
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement