Advertisement
MagmaLP

ddd

Nov 14th, 2023
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. function calc_color(color)
  2. return math.pow(2, color - 1)
  3. end
  4.  
  5. function msg(gap, line, color, groundb, text)
  6. term.setBackgroundColor(calc_color(groundb))
  7. term.setCursorPos(gap,line)
  8. term.setTextColor(calc_color(color))
  9. text = term.write(text)
  10. end
  11.  
  12. msg(13,14,04,16,"test")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement