Advertisement
Guest User

show

a guest
Jul 9th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. x=4
  2. br=0.5
  3. file="bild"
  4. color={}
  5. color[" "]=14
  6. color["0"]=14
  7. color["1"]=15
  8. color["2"]=16
  9. color["3"]=17
  10. color["4"]=18
  11. color["5"]=19
  12. color["6"]=20
  13. color["7"]=21
  14. color["8"]=22
  15. color["9"]=23
  16. color["a"]=24
  17. color["b"]=25
  18. color["c"]=26
  19. color["d"]=27
  20. color["e"]=28
  21. color["f"]=29
  22. fp=fs.open("eevee","r")
  23. img=fp.readAll()
  24. p=peripheral.wrap("openblocks_projector_0")
  25. i=1
  26. for x=0,63 do
  27. for z=0,63 do
  28. tint=color[string.sub(img,i,i)]
  29. if tint~=nil then
  30. p.setPoint(x,z,1,254-x,tint)
  31. p.setPoint(x,z,0,255-x,tint)
  32. else
  33. p.setPoint(x,z,1,255,tint)
  34. end
  35. i=i+1
  36. end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement