Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("Test/GIF")
- os.loadAPI("Test/blittle")
- local mon = peripheral.find("monitor")
- mon.setTextScale(0.5)
- mon.setBackgroundColour(colors.black)
- mon.clear()
- local fileName = "Test/Carte.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 10, mon)
- local fileName = "Test/CarteA.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 10, mon)
- local fileName = "Test/Carte2.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 10, mon)
- local fileName = "Test/Carte3.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 10, mon)
- local fileName = "Test/Carte4.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 10, mon)
- local fileName = "Test/Carte5.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 10, mon)
- local fileName = "Test/Carte6.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 10, mon)
- local fileName = "Test/Carte7.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 10, mon)
- local fileName = "Test/Carte8.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 100, mon)
- local fileName = "Test/Carte9.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 100, mon)
- local fileName = "Test/Carte10.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 100, mon)
- local fileName = "Test/CarteJ.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 100, mon)
- local fileName = "Test/CarteQ.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 100, mon)
- local fileName = "Test/CarteK.gif"
- local x, y = mon.getSize()
- local image = blittle.shrink(GIF.toPaintutils(GIF.loadGIF(fileName)))
- blittle.draw(image, 10, 100, mon)
Advertisement
Add Comment
Please, Sign In to add comment