Advertisement
giwdul

image_display_CC

Feb 14th, 2021 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. -- Display an image on a computer craft monitor
  2.  
  3. mon = peripheral.wrap("right") -- side of computer monitor is connected to
  4. mon.setTextScale(0.5) -- Improve the size of pictures by doubling pixels
  5. image = paintutils.loadImage("norman")
  6. term.redirect(mon)
  7. paintutils.drawImage(image, 1, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement