Advertisement
aarock1234

Untitled

Apr 18th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. --# Load the API
  2. os.loadAPI('/multiMon')
  3. os.loadAPI("drawmon") --load the API
  4.  
  5. --# Create the monitors object (the monitors are arranged in the world the same way you see them in the table below).
  6. local monitorSetup = {
  7. {peripheral.wrap('monitor_6'), peripheral.wrap('monitor_7'), peripheral.wrap('monitor_8')}
  8. }
  9.  
  10. --# Create the virtual monitor (will also return the handle).
  11. local disp = multiMon.create('myMonitor', monitorSetup)
  12.  
  13. --# Showcasing some basic functions.
  14. disp.setTextScale(0.5)
  15. if disp.isColour() then
  16. disp.setTextColour(colours.white)
  17. disp.setBackgroundColour(colours.black)
  18. end
  19. disp.setCursorBlink(false)
  20. disp.clear()
  21. disp.setCursorPos(1, 1)
  22. local width, height = disp.getSize()
  23.  
  24. --# Writes random characters onto the screen.
  25. local image = paintutils.loadImage("/potato") --The Image to load
  26. drawmon.drawImage(disp, image, 2, 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement