Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GithubRepo = "https://github.com/Grexxity/GifProjector/tree/main"
- local sSavename = "GCC1v2.gif"
- -----------------------------------------------------------
- if not fs.exists("bbpack") then
- shell.run("pastebin","get","cUYTGbpb","bbpack")
- term.clear()
- end
- if not fs.exists("GIF") then
- shell.run("pastebin","get","5uk9uRjC","GIF")
- term.clear()
- end
- os.loadAPI("GIF")
- os.loadAPI("bbpack")
- local mon = peripheral.find("monitor")
- mon.setTextScale(0.5)
- term.redirect(mon)
- local x,y = term.getSize()
- local Stored = x.."x"..y..sSavename
- if not fs.exists("GIFs/"..Stored) then
- bbpack.fileSys(GithubRepo, "pain/")
- local image = GIF.loadGIF("pain/"..sSavename)
- local image = GIF.resizeGIF(image, x,y)
- GIF.saveGIF(image,"GIFs/"..Stored)
- end
- local image = GIF.loadGIF("GIFs/"..Stored)
- while true do
- term.setBackgroundColour(image.backgroundCol)
- term.clear()
- parallel.waitForAny(
- function()
- GIF.animateGIF(image, math.floor((x - image.width) / 2) + 1, math.floor((y - image.height) / 2) + 1)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement