Laine_prikol

Tanspol

May 1st, 2016
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local component = require("component")
  2. local os = require("os")
  3. local term = require("term")
  4. local component = require("component")
  5. local gpu = component.gpu
  6. local w, h = gpu.getResolution()
  7. term.clear()
  8. os.execute("resolution 1 1")
  9. while true do
  10. gpu.setBackground(0xFF0000)
  11. os.sleep(0.1)
  12. gpu.fill(1, 1, w, h, " ")
  13. gpu.setBackground(0xFFFFFF)
  14. os.sleep(0.5)
  15. gpu.fill(1, 1, w, h, " ")
  16. os.sleep(0.5)
  17. gpu.setBackground(0x6FFF00)
  18. gpu.fill(1, 1, w, h, " ")
  19. gpu.setBackground(0xFFF300)
  20. gpu.fill(1, 1, w, h, " ")
  21. term.clear()
  22. end
RAW Paste Data