Advertisement
Guest User

main

a guest
Aug 27th, 2015
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. mon1 = peripheral.wrap("left")
  2. mon2 = peripheral.wrap("right")
  3. xmax,ymax = mon1.getSize()
  4.  
  5.  
  6. repeat
  7.  
  8. event, side, xpos, ypos = os.pullEvent("monitor_touch")
  9. mon1.clear()
  10. mon2.clear()
  11. for i=1,ymax do
  12. term.redirect(mon1)
  13. term.redirect(mon2)
  14. paintutils.drawLine(1,i,xmax,i,colours.blue)
  15.  
  16. term.native()
  17. end
  18. --print("ping")
  19.  
  20. rs.setOutput("bottom", true)
  21. os.sleep(3)
  22. rs.setOutput("bottom", false)
  23.  
  24. until false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement