Advertisement
TheGameBoy_95

Untitled

May 20th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. mon = peripheral.wrap("top")
  2.  
  3. w, h = mon.getSize()
  4.  
  5. -- Amount the monitor can hold
  6. hMonitor = {6, 7}
  7. wMonitor = {9, 11}
  8.  
  9. mon.clear()
  10. mon.setBackgroundColor(colors.black)
  11.  
  12. for i = 1, w do
  13. mon.setCursorPos(i, 1)
  14. mon.write("1")
  15. end
  16.  
  17. for i = 1, h do
  18. mon.setCursorPos(1, i)
  19. mon.write("2")
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement