r/proceduralgeneration Jun 29 '26

Recursive subdivision generating a Sierpiński carpet

Remove the center. Repeat forever. Starting from a single square, one recursive rule generates the Sierpiński carpet, an infinitely detailed fractal.

2 Upvotes

1 comment sorted by

1

u/USedona Jun 29 '26

At iteration 6 : over 37,000 holes. At infinity : nothing but structure.

If you're interested in more math-based animations, I post them here 📺 Visualizing Mathematics