Advertisement
guitarplayer616

4 Monitor HD

Jun 21st, 2015
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. tArgs = {...}
  2.  
  3. term.redirect(peripheral.find("monitor"))
  4. term.clear()
  5. w,h = term.getSize()
  6. local img = paintutils.loadImage("taco")
  7.  
  8. --print(#img) --81 y
  9. --print(#img[1]) --165 x
  10.  
  11.  
  12. print(tArgs[1])
  13.  
  14. if tArgs[1] == 1 then
  15.   a,b = 1,1
  16. elseif tArgs[1] == 2 then
  17.   a,b = -83,1
  18. elseif tArgs[1] == 3 then
  19.   a,b = 1,-41
  20. elseif tArgs[1] == 4 then
  21.   a,b = -83,-41
  22. end
  23.  
  24. print(a,b)
  25.  
  26. paintutils.drawImage(img,-83,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement