Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon1 = peripheral.wrap("left")
- mon2 = peripheral.wrap("right")
- xmax,ymax = mon1.getSize()
- repeat
- event, side, xpos, ypos = os.pullEvent("monitor_touch")
- mon1.clear()
- mon2.clear()
- for i=1,ymax do
- term.redirect(mon1)
- term.redirect(mon2)
- paintutils.drawLine(1,i,xmax,i,colours.blue)
- term.native()
- end
- --print("ping")
- rs.setOutput("bottom", true)
- os.sleep(3)
- rs.setOutput("bottom", false)
- until false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement