LivioBrunner

BoxAPI

Nov 14th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. function create(x,y,width,height,color,mon)
  2.     mon.setCursorPos(x,y)
  3.         for j = 0, height do
  4.         mon.setCursorPos(x,y+j)
  5.         for i = 0,width do
  6.             mon.setBackgroundColor(color)
  7.             mon.write(" ")
  8.         end
  9.     end
  10. end
  11. function clearAll(mon, color)
  12.     local w,h = mon.getSize()
  13.     for i = 0,h do
  14.         for j = 0, w do
  15.             mon.setCursorPos(1+j,1+i)
  16.             mon.setBackgroundColor(color)
  17.             mon.write(" ")
  18.         end
  19.     end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment