Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("image2.lua")
- local screen = peripheral.find("monitor") or term
- screen.setTextScale(.5)
- screen.setCursorPos(1,1)
- local ix, iy = image.getSize()
- local sx, sy = screen.getSize()
- if (sx<ix) or (sy<iy) then
- printError("Warning, image larger than screen")
- end
- print("Drawing a", ix, iy, "image on a", sx, sy, "screen")
- image.draw(screen)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement