Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------
- -- IMG READER --
- ----------------
- -- local component = require("component")
- -- local srl = require("serialization")
- -- local fs = require("filesystem")
- -- local gpu = component.gpu
- -- local bridge = component.openperipheral_bridge
- -- print("Ввведите путь до картинки:")
- -- local path = io.read()
- -- gpu.setBackground(0x878787)
- -- gpu.setForeground(0xC3C3C3)
- -- gpu.fill(0, 0, 999, 999, " ")
- -- file = io.open(path, "r")
- -- tt = file:read()
- -- file:close()
- -- tt = srl.unserialize(tt)
- -- for i in pairs(tt) do
- -- gpu.set(tt[i].x, tt[i].y, "#")
- -- bridge.addBox(tt[i].x, tt[i].y*2, 1, 2, 0xFFFFFF, 1)
- -- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement