Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local paste_id = args[1]
- shell.run("delete image.nfp") --delete file if it already exists
- shell.run("pastebin", "get", paste_id, "image.nfp") --fetch NFP image from pastebin at given paste_id
- local old_term = term.current()
- term.clear()
- --draw image through paintutils
- local image = paintutils.loadImage("image.nfp")
- paintutils.drawImage(image, 0, 0)
- term.redirect(old_term)
- print("Done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement