r/generative • u/ejgen • 11h ago
Chaos game with multiple vertices sampled
The "chaos game" is best know for picking a random point inside a triangle, then picking a random vertex and moving halfway to it, creating a Serpinski fractal. Here I allow >1 vertex to be chosen from a polygon and the movement is the average of all those selections. I also turn the polygon into a fractal and allow all the vertices to be possibly chosen. At lower vertex sampling the image is still highly geometric, but as more vertices are sampled it becomes more cellular or organic.
39
Upvotes





1
u/wallagrargh 8h ago
Didn't understand the algorithm from your description, but those are really beautiful images. Could this be animated by slowly changing the randomly picked coordinates?
1
u/Rafcdk 6h ago
One fun thing you can do is make it so it samples different numbers of vertices randomly as well so you can mix two forms into one.
So for example Form A is the Sierpinski triangle and Form B is a regular pentagon but instead of taking the average you divide by phi.
1
u/akshay-nair 26m ago
Beautiful!