Advertisement
GladdeSnaak

test

Feb 2nd, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. mon = peripheral.find("monitor")
  2. local Xpos = 5
  3. local Ypos = 5
  4. local Xend = 30
  5. local Yend = 8
  6. local Yfill = 0
  7.  
  8. function fill()
  9. mon.setBackgroundColor(colors.blue)
  10. width = Xpos-Xend
  11. heigth = Ypos-Yend
  12. mon.setCursorPos(Xpos,Ypos)
  13. while i <= width do
  14. Yfill = Yfill + 1
  15. if Yfill <= heigth then
  16. for b = 1,width do
  17. mon.write(" ")
  18. end
  19. i = 1
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement