Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- w, h = term.getSize()
- term.clear()
- count = 0
- colors = {}
- --initialize colors--
- for i = 0, 15 do
- colors[i] = 2 ^ i
- end
- --==PROGRAM START==--
- while true do
- x = math.random(1, w)
- y = math.random(1, h)
- color = colors[math.random(0, 15)]
- paintutils.drawPixel(x, y, color)
- count = count + 1
- if count > 100 then
- count = 0
- sleep(.1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement