Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arg = {...}
- assert(#arg == 1, 'usage: imageDisplay <image name>')
- local mon = screenAPI.wrapMon()
- local image = fs.open('mcPaintFolder/images/'..arg[1], 'r')
- local imageString = image.readAll()
- local imageTable = textutils.unserialise(imageString)
- for i = 1, #imageTable do
- for k = 1, #imageTable[i] do
- screenAPI.drawDot(i, k, imageTable[i][k])
- end
- end
Add Comment
Please, Sign In to add comment