Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. ----------------
  2. -- IMG READER --
  3. ----------------
  4.  
  5.  
  6. -- local component = require("component")
  7. -- local srl = require("serialization")
  8. -- local fs = require("filesystem")
  9. -- local gpu = component.gpu
  10. -- local bridge = component.openperipheral_bridge
  11.  
  12. -- print("Ввведите путь до картинки:")
  13. -- local path = io.read()
  14. -- gpu.setBackground(0x878787)
  15. -- gpu.setForeground(0xC3C3C3)
  16. -- gpu.fill(0, 0, 999, 999, " ")
  17. -- file = io.open(path, "r")
  18. -- tt = file:read()
  19. -- file:close()
  20.  
  21. -- tt = srl.unserialize(tt)
  22. -- for i in pairs(tt) do
  23. -- gpu.set(tt[i].x, tt[i].y, "#")
  24. -- bridge.addBox(tt[i].x, tt[i].y*2, 1, 2, 0xFFFFFF, 1)
  25. -- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement