antonsavov

Untitled

Feb 2nd, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. --tutorial 11 PHV
  2. os.loadAPI('texthelp')
  3. local text = "The PHV is a 100 hectare area, used by the U.S. Army until 2013. Its most characteristic feature were the rows of barracks that housed the army officers."
  4. local c = 'blue'
  5. local highlights = {
  6. {word = '100', color = c},
  7. {word = 'hectare', color = c}
  8. }
  9. local monitor = peripheral.wrap('top')
  10. monitor.setTextScale(1.5)
  11. local w,h = monitor.getSize()
  12. texthelp.printToScreenColor(monitor,text,w,highlights,2,2, colors.white)
Advertisement
Add Comment
Please, Sign In to add comment