SkyCrafter0

drawBox.lua

Sep 17th, 2020 (edited)
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local arg1, arg2, arg3, arg4, arg5 = ...
  2. local argn1 = tonumber(arg1)
  3. local argn2 = tonumber(arg2)
  4. local argn3 = tonumber(arg3)
  5. local argn4 = tonumber(arg4)
  6. local argn5 = tonumber(arg5)
  7.  
  8. currentColour = term.getBackgroundColor()
  9. currentTextColour = term.getTextColor()
  10.  
  11. paintutils.drawBox(argn1,argn2,argn3,argn4,argn5)
  12.  
  13. term.setBackgroundColor(currentColour)
  14. term.setTextColor(currentTextColour)
  15.  
Add Comment
Please, Sign In to add comment