antonsavov

Untitled

Feb 12th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. --tutorial 29 two resources
  2. os.loadAPI('texthelp')
  3. local text = "Buildings created with the URBAN resource are solid and massive. /n Buildings created with the NATURE resource are more open and light."
  4. local c = 'blue'
  5. local c2 = 'purple'
  6. local c3 = 'green'
  7. local highlights = {
  8. {word = 'URBAN', color = c2},
  9. {word = 'NATURE', color = c3}
  10.  
  11. }
  12. local monitor = peripheral.wrap('top')
  13. monitor.setTextScale(1.5)
  14. local w,h = monitor.getSize()
  15. texthelp.printToScreenColor(monitor,text,w,highlights,2,2, colors.white)
Advertisement
Add Comment
Please, Sign In to add comment