Advertisement
hendgo12

display

Apr 15th, 2021
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. local targ={...}
  2. os.loadAPI("wrap")
  3. mon = wrap.attach("monitor")
  4. mon.clear()
  5. mon.setCursorPos(1,1)
  6. if #targ==0 then
  7. print("Type the filename of the image you would like to load:")
  8. local filename = io.read()
  9. else
  10. filename = targ[1]
  11. end
  12. image = paintutils.loadImage(filename)
  13. term.redirect(mon)
  14. paintutils.drawImage(image,1,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement