Advertisement
Guest User

main

a guest
Apr 7th, 2020
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local imageDir = "/images/"
  2. local images = fs.list(imageDir)
  3. local monitorPosition = "right"
  4.  
  5. local continue = true
  6.  
  7. local monitor = peripheral.wrap(monitorPosition)
  8. local oldTerm = term.current()
  9. term.redirect(monitor)
  10.  
  11. while continue do
  12.  
  13.   for _, fileName in pairs(images) do
  14.     paintutils.drawImage(paintutils.loadImage(imageDir .. fileName), 1, 1)
  15.     sleep(1)
  16.     term.clear()
  17.   end
  18.  
  19. end
  20.  
  21. term.redirect(oldTerm)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement