Advertisement
TG_Vulcano

aaa

Jun 20th, 2023
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local args = {...}
  2. local paste_id = args[1]
  3. shell.run("delete image.nfp") --delete file if it already exists
  4. shell.run("pastebin", "get", paste_id, "image.nfp") --fetch NFP image from pastebin at given paste_id
  5. local old_term = term.current()
  6. term.clear()
  7. --draw image through paintutils
  8. local image = paintutils.loadImage("image.nfp")
  9. paintutils.drawImage(image, 0, 0)
  10. term.redirect(old_term)
  11. print("Done")
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement