Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function create(x,y,width,height,color,mon)
- mon.setCursorPos(x,y)
- for j = 0, height do
- mon.setCursorPos(x,y+j)
- for i = 0,width do
- mon.setBackgroundColor(color)
- mon.write(" ")
- end
- end
- end
- function clearAll(mon, color)
- local w,h = mon.getSize()
- for i = 0,h do
- for j = 0, w do
- mon.setCursorPos(1+j,1+i)
- mon.setBackgroundColor(color)
- mon.write(" ")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment