Advertisement
incinirate

gc

Jan 6th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. function drawBoxOutlineBackColor(x,y,x2,y2,c)
  2.   x2 = x2+x-1
  3.   y2 = y2+y-1
  4.   term.setBackgroundColor(c)
  5.   term.setCursorPos(x,y)
  6.   term.write(string.rep(" ",x2-x+1))
  7.   for i=y+1,y2 do
  8.     term.setCursorPos(x,i)
  9.     term.write(" ")
  10.     term.setCursorPos(x2,i)
  11.     term.write(" ")
  12.   end
  13.   term.setCursorPos(x,y2)
  14.   term.write(string.rep(" ",x2-x+1))
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement