IronClaymore

ic_tech welcome

Jun 25th, 2014
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. -- wrap the two monitors
  2. local monitor1 = peripheral.wrap("monitor_85")
  3. local monitor2 = peripheral.wrap("monitor_86")
  4.  
  5. -- easyprint thingy for writing stuff
  6. local function print1(str, x, y)
  7.     monitor1.setCursorPos(x, y)
  8.     monitor1.write(str)
  9. end
  10. local function print2(str, x, y)
  11.     monitor2.setCursorPos(x, y)
  12.     monitor2.write(str)
  13. end
  14.  
  15. -- clear whatever they have currently
  16. monitor1.clear()
  17. monitor2.clear()
  18.  
  19. -- set their background colours
  20. monitor1.setBackgroundColor(colors.white)
  21. monitor2.setBackgroundColor(colors.white)
  22.  
  23. -- top monitor text
  24. monitor2.setTextScale(5)
  25. monitor2.setTextColor(colors.green)
  26. monitor2.setCursorPos(2, 1)
  27. monitor2.write("WELCOME TO")
  28. monitor2.setTextColor(colors.blue)
  29. monitor2.setCursorPos(3, 2)
  30. monitor2.write("IC-TECH")
  31.  
  32. -- bottom monitor text
  33. monitor1.setTextScale(4)
  34. monitor1.setTextColor(colors.black)
  35. print1("RECEPTION",1,1)
Advertisement
Add Comment
Please, Sign In to add comment