paramus

Window Container

Jul 9th, 2026 (edited)
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | Gaming | 0 0
  1. local width, height = term.getSize()
  2. local baseTerm = term.current()
  3. local windowTerm = window.create(baseTerm, 1, 2, width, height)
  4.  
  5. function Draw()
  6.     term.setBackgroundColor(colors.black)
  7.     term.clear()
  8.    
  9.     paintutils.drawLine(1,1, width,1, colors.blue)
  10.     paintutils.drawPixel(width,1, colors.orange)
  11. end
  12.  
  13. while (true) do
  14.     Draw()
  15.     sleep(1)
  16. end
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment