Advertisement
9551

fill

Jun 20th, 2021
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1.   local function fill(monitor, pos1, pos2, length, height)
  2.         local m = peripheral.wrap(monitor)
  3.         for x = 0, height - 1 do
  4.             m.setCursorPos(pos1, pos2 + x)
  5.             m.write(string.rep(" ", length))
  6.         end
  7.     end
  8.  
  9. return { fill = fill }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement