Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = { ... }
- print(args[1])
- if args[1] == "orange" then color = colors.orange
- elseif args[1] == "magenta" then color = colors.magenta
- elseif args[1] == "lightblue" then color = colors.lightBlue
- elseif args[1] == "yellow" then color = colors.yellow
- elseif args[1] == "lime" then color = colors.lime
- elseif args[1] == "pink" then color = colors.pink
- elseif args[1] == "gray" then color = colors.gray
- elseif args[1] == "lightgray" then color = colors.lightgray
- elseif args[1] == "cyan" then color = colors.cyan
- elseif args[1] == "purple" then color = colors.purple
- elseif args[1] == "blue" then color = colors.blue
- elseif args[1] == "brown" then color = colors.brown
- elseif args[1] == "green" then color = colors.green
- elseif args[1] == "red" then color = colors.red
- elseif args[1] == "black" then color = colors.black
- elseif args[1] == "white" then color = colors.white
- end
- monitor = peripheral.wrap("monitor_1")
- if monitor.isColor() then
- monitor.setBackgroundColor(color)
- monitor.clear()
- os.pullEvent("key")
- monitor.setBackgroundColor(colors.black)
- monitor.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement