SHARE
TWEET

Untitled

a guest Jul 9th, 2016 13 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("blittle")
  2.  
  3. local window = blittle.createWindow()
  4. local w, h = window.getSize()
  5. local windowOffsetX = 3
  6. local windowOffsetY = 2
  7. local shadowOffsetX = 2
  8. local shadowOffsetY = 2
  9.  
  10. term.redirect(window)
  11.  
  12. window.setVisible(false)
  13. term.setBackgroundColor(colors.orange)
  14. term.clear()
  15. term.setCursorPos(1, 1)
  16.  
  17. paintutils.drawFilledBox(windowOffsetX + shadowOffsetX,
  18.                          windowOffsetY + shadowOffsetY,
  19.                                                         (w - windowOffsetX) + shadowOffsetX,
  20.                                                         (h - windowOffsetY) + shadowOffsetY, colors.black)
  21.  
  22. paintutils.drawFilledBox(windowOffsetX, windowOffsetY, w - windowOffsetX, h - windowOffsetY, colors.white)
  23. for i = 0, 3 do
  24.     paintutils.drawLine(windowOffsetX, windowOffsetY + i, w - windowOffsetX, windowOffsetY + i, colors.blue)
  25. end
  26.  
  27. window.setVisible(true)
  28. sleep(989895)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top