Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(1)
- term.clear()
- term.setCursorPos(1,1)
- term.setCursorBlink(false)
- local event = ""
- local key = 0
- local x = 0
- local y = 0
- local img = {{}}
- while key ~= 29 do
- event, key, x, y = os.pullEvent()
- if event == "mouse_drag" or event == "mouse_click" then
- term.setCursorPos(x,y)
- if key == 1 then
- term.setBackgroundColor(32768)
- elseif key == 2 then
- term.setBackgroundColor(1)
- end
- term.write(" ")
- end
- end
- term.setBackgroundColor(32768)
- term.clear()
- term.setCursorBlink(true)
- term.setCursorPos(1,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement