antonsavov

Untitled

Feb 2nd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. --tutorial 21 vocab preview
  2. os.loadAPI('texthelp')
  3. local text = "There are six types of buildings in IBA_GAME. Each building type has variations for both the URBAN and the NATURE resources."
  4. local c = 'blue'
  5. local c2 = 'purple'
  6. local c3 = 'green'
  7. local highlights = {
  8. {word = 'six', color = c},
  9. {word = 'types', color = c},
  10. {word = 'of', color = c},
  11. {word = 'buildings', color = c},
  12. {word = 'URBAN', color = c2},
  13. {word = 'NATURE', color = c3}
  14.  
  15. }
  16. local monitor = peripheral.wrap('top')
  17. monitor.setTextScale(1.5)
  18. local w,h = monitor.getSize()
  19. texthelp.printToScreenColor(monitor,text,w,highlights,2,2, colors.white)
Advertisement
Add Comment
Please, Sign In to add comment