SD_Ecliptica

Colors 2

Oct 9th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. m1 = peripheral.wrap("bottom")
  2. m2 = peripheral.wrap("back")
  3. m1.clear()
  4. m2.clear()
  5. while true do
  6.   m2.setBackgroundColor(colors.green)
  7.   m1.setBackgroundColor(colors.red)
  8.   m1.clear()
  9.   m2.clear()
  10.   os.sleep(1)
  11.   m2.setBackgroundColor(colors.red)
  12.   m1.setBackgroundColor(colors.purple)
  13.   m1.clear()
  14.   m2.clear()
  15.   os.sleep(1)
  16.   m2.setBackgroundColor(colors.purple)
  17.   m1.setBackgroundColor(colors.blue)
  18.   m1.clear()
  19.   m2.clear()
  20.   os.sleep(1)
  21.   m2.setBackgroundColor(colors.blue)
  22.   m1.setBackgroundColor(colors.white)
  23.   m1.clear()
  24.   m2.clear()
  25.   os.sleep(1)
  26.   m2.setBackgroundColor(colors.white)
  27.   m1.setBackgroundColor(colors.green)
  28.   m1.clear()
  29.   m2.clear()
  30.   os.sleep(1)
  31. end
Advertisement
Add Comment
Please, Sign In to add comment