Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drawBoxOutlineBackColor(x,y,x2,y2,c)
- x2 = x2+x-1
- y2 = y2+y-1
- term.setBackgroundColor(c)
- term.setCursorPos(x,y)
- term.write(string.rep(" ",x2-x+1))
- for i=y+1,y2 do
- term.setCursorPos(x,i)
- term.write(" ")
- term.setCursorPos(x2,i)
- term.write(" ")
- end
- term.setCursorPos(x,y2)
- term.write(string.rep(" ",x2-x+1))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement