Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- colorSeq = {
- colors.white,
- colors.orange,
- colors.magenta,
- colors.lightBlue,
- colors.yellow,
- colors.lime,
- colors.pink,
- colors.gray,
- colors.lightGray,
- colors.cyan,
- colors.purple,
- colors.blue,
- colors.brown,
- colors.green,
- colors.red,
- colors.black
- }
- delay = 1
- periphs = peripheral.getNames()
- monitorList = {}
- for a = 1, #periphs do
- if peripheral.getType(periphs[a]) == "monitor" then
- table.insert(monitorList, periphs[a])
- end
- end
- while true do
- for a = 1, #colorSeq do
- for b = 1, #monitorList do
- mon = peripheral.wrap(monitorList[b])
- mon.setBackgroundColor(colorSeq[a])
- monX, monY = mon.getSize()
- for c = 1, monY do
- for d = 1, monX do
- mon.setCursorPos(d,c)
- write(" ")
- end
- end
- end
- sleep(delay)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement