Advertisement
Guest User

Title

a guest
Aug 24th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. mon = peripheral.wrap("bottom")
  2. mon.clear()
  3. mon.setTextColor(colors.purple)
  4. mon.setTextScale(3.5)
  5. mon.setCursorPos(1,1)
  6.  
  7. local x,y = mon.getSize()
  8.  
  9. function Title(string, ypos)
  10.     mon.setCursorPos((x/2) + 1 -#string/2,ypos)
  11.     mon.write(string)
  12. end
  13.  
  14. Title("Deep Dark", 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement