Advertisement
Criosdu79

ClientV0.0.1

Feb 26th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. local component = require("component")
  2. local event = require("event")
  3. local modem = component.modem
  4. local gpu = component.gpu
  5. local lenght, weight = gpu.getResolution()
  6. local slot = 1
  7. local term = require("term")
  8. maxslot = 0
  9.  
  10. print(lenght.."x"..weight)
  11.  
  12. -- Graphic Gestion --
  13.  
  14. function text(x, y, text, background, foreground)
  15. maxslot = maxslot + 1
  16.  
  17. gpu.setBackground(background)
  18. gpu.setForeground(foreground)
  19.  
  20. gpu.set(x,y,text)
  21.  
  22. gpu.setBackground(0x000000)
  23. gpu.setForeground(0xffffff)
  24.  
  25. end
  26.  
  27. local function cube()
  28. gpu.setBackground(0xffffff)
  29. gpu.fill(4, 4, 30, 10, " ")
  30. end
  31. cube()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement