This is the Chaos game. It's a math game where a dot is randomly placed, then the dot points toward a random corner and moves half the distance to it, stamps the dot on the canvas, and repeats now starting at the new place.
Thanks to Mathematical Visual proofs Youtube channel!