Advertisement
Bjornir90

graphDev

Aug 26th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. os.loadAPI("monApi")
  2.  
  3. local function pixel(x, y, color, monitor)
  4.     monitor.setBackgroundColor(color)
  5.     monitor.setCursorPos(x, y)
  6.     monitor.write(" ")
  7.     monitor.setBackgroundColor(colors.black)
  8. end
  9.  
  10. local Args = {...}
  11.  
  12.  
  13.  
  14. mon = monApi.wrapMonitor("top")
  15. mon.clear()
  16. graph1 = mon.createSection(1,1,12,12)
  17. graph1.clear()
  18. graph1.setCursorPos(2,2)
  19. graph1.write(Args[1])
  20. pixel(5,5,colors.lime,graph1)
  21. pixel(6,6,colors.lime,graph1)
  22. pixel(4,3,colors.lime,graph1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement