Advertisement
raphael76280

Untitled

Apr 13th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local component = require("component")
  2. local event = require("event")
  3. local keyboard = require("keyboard")
  4. local os = require("os")
  5. local term = require("term")
  6. local gpu = component.gpu
  7.  
  8.  
  9. function rect(x, y, w, h, color)
  10. gpu.setBackgroundColor(color)
  11. gpu.fill(x,y,w,h, " ")
  12. end
  13.  
  14. local w,h = gpu.getResolution
  15. for x=0,w do
  16. for y=0,h do
  17. rect(x,y,1,1, math.random()*0xFFFFFF)
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement