Advertisement
MagmaLP

test

Apr 4th, 2021 (edited)
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. mon = peripheral.wrap("left")
  2. mon.setBackgroundColor(32768)
  3. mon.setTextScale(1.5)
  4. mon.clear()
  5.  
  6.  
  7. function calc_color(color)
  8.     return math.pow(2, color - 1)
  9. end
  10.  
  11. function msg(gap, line, color, groundb, text)
  12.     mon.setBackgroundColor(calc_color(groundb))
  13.     mon.setCursorPos(gap,line)
  14.     mon.setTextColor(calc_color(color))
  15.     text = mon.write(text)
  16. end  
  17.  
  18. msg(12,3,4,16,"Sprache / Language")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement