TechManDylan

MoniterColorFlasher

Jan 19th, 2021 (edited)
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. local colorTable = {
  2.   colors.white;
  3.   colors.lightGray;
  4.   colors.gray;
  5.   colors.black;
  6.   colors.yellow;
  7.   colors.orange;
  8.   colors.red;
  9.   colors.magenta;
  10.   colors.purple;
  11.   colors.lime;
  12.   colors.green;
  13.   colors.cyan;
  14.   colors.lightBlue;
  15.   colors.blue;
  16.   colors.brown;
  17. }
  18.  
  19. local attachedMonitor = peripheral.wrap("left")
  20. for index,color in ipairs(colorTable) do
  21.   attachedMonitor.setBackgroundColor(color)
  22.   attachedMonitor.clear()
  23.   sleep(1)
  24. end
  25. attachedMonitor.setBackgroundColor(colors.black)
Add Comment
Please, Sign In to add comment