Advertisement
Laine_prikol

Tanspol Advanced

Jul 13th, 2016
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local component = require("component")
  2. local gpu = component.gpu
  3. local w, h = gpu.getResolution()
  4. while true do
  5. gpu.fill(1, 1, w, h, " ")
  6. gpu.setBackground(0xFFFFFF)
  7. gpu.setBackground(0xFFFFFF)
  8. gpu.fill(1, 1, w, h, " ")
  9. gpu.setForeground(0x00FF1A)
  10. gpu.setForeground(0x1D4722)
  11. gpu.setBackground(0x50C55C)
  12. gpu.fill(1, 1, w/2, h/2, "█") -- fill top left quarter of screen
  13. gpu.copy(1, 1, w/2, h/2, w/2, h/2) -- copy top left quarter of screen to lower right
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement