Advertisement
guitarplayer616

4:3 Resolution Monitor

Jun 28th, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.20 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. local image5 = fs.open("image5",'w')
  15. image5.write([[]])
  16. image5.close()
  17. local image6 = fs.open("image6",'w')
  18. image6.write([[]])
  19. image6.close()
  20. local image7 = fs.open("image7",'w')
  21. image7.write([[]])
  22. image7.close()
  23. local image8 = fs.open("image8",'w')
  24. image8.write([[]])
  25. image8.close()
  26. local image9 = fs.open("image9",'w')
  27. image9.write([[]])
  28. image9.close()
  29. local image10 = fs.open("image10",'w')
  30. image10.write([[]])
  31. image10.close()
  32. local image11 = fs.open("image11",'w')
  33. image11.write([[]])
  34. image11.close()
  35. local image12 = fs.open("image12",'w')
  36. image12.write([[]])
  37. image12.close()
  38.  
  39. image = {}
  40. for i = 1,12 do
  41.         image[i] = paintutils.loadImage("image"..tostring(i))
  42. end
  43.  
  44. --image[1] = paintutils.loadImage("image1")
  45. local mon = peripheral.find("monitor")
  46. mon.setTextScale(.5)
  47. term.redirect(mon)
  48. paintutils.drawImage(image[tonumber(nArgs)],1,1)
  49. term.redirect(term.native())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement