Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --this script allows you to display images to a monitor from a disk
- --name your first image 1.nfp and your second 2.nfp ...
- --put those files on a disk
- --run this script on a computer with a monitor beside and your disk
- local files = fs.list("disk/")
- local images = {}
- local monitor = peripheral.find("monitor")
- term.redirect(monitor)
- for i=1,#files do
- images[i] = paintutils.loadImage("disk/"..tostring(i)..".nfp")
- end
- term.clear()
- term.setCursorPos(1, 1)
- while 1 do
- for j=1,#files do
- term.clear()
- paintutils.drawImage(images[j], 1, 1)
- sleep(5)
- end
- end
Add Comment
Please, Sign In to add comment