Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Goodbye.")
- sleep(0.5)
- local pixels = {}
- local x,y = term.getSize()
- term.setBackgroundColour( colors.white )
- while true do
- for i=1,50 do
- local curX = math.random(x)
- local curY = math.random(y)
- local maxPixels = x*y
- if #pixels < maxPixels then
- term.setCursorPos( curX, curY )
- write(" ")
- pixels[x.. "/" ..y] = true
- else
- os.shutdown()
- end
- end
- sleep(0)
- end
Advertisement
Add Comment
Please, Sign In to add comment