Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while not rs.getInput("bottom") do
- end
- local start = 20
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.cyan)
- local i = start;
- while i > 0
- if i >= 10 then
- term.clear()
- term.setCursorPos(1,1)
- if i == 10 then term.setTextColor(colors.red) end
- print i
- sleep(1)
- elseif i > 5 then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print "0" .. i
- sleep(1)
- else
- term.setBackgroundColor(colors.red)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.white)
- print "0" .. i
- sleep(0.5)
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print "0" .. i
- sleep(0.5)
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- print "00"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement