Advertisement
guitarplayer616

SplitImageMulitMonitorRenderer

Jun 28th, 2015
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. local nArgs = (...)
  2. local image1 = fs.open("image1",'w')
  3. image1.write([[]])
  4. image1.close()
  5. local image2 = fs.open("image2",'w')
  6. image2.write([[]])
  7. image2.close()
  8. local image3 = fs.open("image3",'w')
  9. image3.write([[]])
  10. image3.close()
  11. local image4 = fs.open("image4",'w')
  12. image4.write([[]])
  13. image4.close()
  14.  
  15.  
  16.  
  17. image = {}
  18. for i = 1,4 do
  19.     image[i] = paintutils.loadImage("image"..tostring(i))
  20. end
  21.  
  22. --image[1] = paintutils.loadImage("image1")
  23. local mon = peripheral.find("monitor")
  24. mon.setTextScale(.5)
  25. term.redirect(mon)
  26. paintutils.drawImage(image[tonumber(nArgs)],1,1)
  27. term.redirect(term.native())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement