Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local targ={...}
- os.loadAPI("wrap")
- mon = wrap.attach("monitor")
- mon.clear()
- mon.setCursorPos(1,1)
- if #targ==0 then
- print("Type the filename of the image you would like to load:")
- local filename = io.read()
- else
- filename = targ[1]
- end
- image = paintutils.loadImage(filename)
- term.redirect(mon)
- paintutils.drawImage(image,1,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement