Advertisement
Guest User

labelapi

a guest
Jan 20th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. -- This API is made to reduce the number of lines
  2. -- of code needed to make cool text n' stuff
  3. -- Chock500 - 23|12|12,016HE
  4.  
  5. os.loadAPI("chockos/config")
  6.  
  7. function label(text,textcol,backcol,posx,posy)
  8.   term.setCursorPos(posx,posy)
  9.   term.setTextColour(textcol)
  10.   term.setBackgroundColour(backcol)
  11.   print(text)
  12.   term.setTextColour(config.defaultTextColour())
  13.   term.setBackgroundColour(config.defaultBackgroundColour())
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement