Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- dimensions of the screen and side with the modem
- -- works best if the screen has the same aspect ratio
- -- as the images
- width = 32
- height = 18
- modemside = "back"
- -- how long each image is displayed before switching (in seconds)
- delay = 10
- -- URLs to the desired images
- -- the images need to be the same size
- -- or at least the same aspect ratio
- url1 = "http://"
- url2 = "http://"
- url3 = "http://"
- -- you can fiddle with these if the
- -- transitions don't look smooth
- speed = 5
- steps = 10
- ----------------------------------------------------------------
- os.load("lumiere")
- img1 = lumiere.getImage(url1,width)
- img2 = lumiere.getImage(url2,width)
- img3 = lumiere.getImage(url3,width)
- if (not img1) or (not img2) or (not img3) then
- print("Error loading images. Check your URLs or contact maintenance.")
- return
- end
- screen = lumiere.initScreen(width,height,modemside)
- screen:setColor("0xFFFFFF")
- while true do
- lumiere.fade(screen,img1,img2,steps,speed)
- sleep(delay)
- lumiere.fade(screen,img2,img3,steps,speed)
- sleep(delay)
- lumiere.fade(screen,img3,img1,steps,speed)
- sleep(delay)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement