Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- time = 0.5
- m = peripheral.wrap("top")
- while true do
- if rs.getInput("front") then
- m.setBackgroundColor(colors.white)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.orange)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.magenta)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.lightBlue)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.yellow)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.lime)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.pink)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.gray)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.lightGray)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.cyan)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.purple)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.blue)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.brown)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.green)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.red)
- m.clear()
- sleep(time)
- m.setBackgroundColor(colors.black)
- m.clear()
- sleep(time)
- else
- m.setBackgroundColor(colors.black)
- m.clear()
- sleep(time)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement