Advertisement
Guest User

startup

a guest
Sep 1st, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. time = 0.5
  2. m = peripheral.wrap("top")
  3. while true do
  4. if rs.getInput("front") then
  5. m.setBackgroundColor(colors.white)
  6. m.clear()
  7. sleep(time)
  8. m.setBackgroundColor(colors.orange)
  9. m.clear()
  10. sleep(time)
  11. m.setBackgroundColor(colors.magenta)
  12. m.clear()
  13. sleep(time)
  14. m.setBackgroundColor(colors.lightBlue)
  15. m.clear()
  16. sleep(time)
  17. m.setBackgroundColor(colors.yellow)
  18. m.clear()
  19. sleep(time)
  20. m.setBackgroundColor(colors.lime)
  21. m.clear()
  22. sleep(time)
  23. m.setBackgroundColor(colors.pink)
  24. m.clear()
  25. sleep(time)
  26. m.setBackgroundColor(colors.gray)
  27. m.clear()
  28. sleep(time)
  29. m.setBackgroundColor(colors.lightGray)
  30. m.clear()
  31. sleep(time)
  32. m.setBackgroundColor(colors.cyan)
  33. m.clear()
  34. sleep(time)
  35. m.setBackgroundColor(colors.purple)
  36. m.clear()
  37. sleep(time)
  38. m.setBackgroundColor(colors.blue)
  39. m.clear()
  40. sleep(time)
  41. m.setBackgroundColor(colors.brown)
  42. m.clear()
  43. sleep(time)
  44. m.setBackgroundColor(colors.green)
  45. m.clear()
  46. sleep(time)
  47. m.setBackgroundColor(colors.red)
  48. m.clear()
  49. sleep(time)
  50. m.setBackgroundColor(colors.black)
  51. m.clear()
  52. sleep(time)
  53. else
  54. m.setBackgroundColor(colors.black)
  55. m.clear()
  56. sleep(time)
  57. end
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement