Generate Sierpinski Square
Draw the Sierpinski square fractal — a square-based recursive subdivision removing corner squares.
What is the Sierpinski Square?
Pick an iteration count and a color, hit draw, and you get a recursive square fractal — each step carves one quadrant out of every block, keeping three of four. Push past 5 iterations and the detail gets fine enough that the fractal dimension near 1.585 starts to feel visible. And everything runs in your browser. Nothing gets uploaded.
FAQ
How is this different from the Sierpinski carpet?
The carpet divides into 3×3 and removes the center. This divides into 2×2 and removes one corner.
What is the fractal dimension?
log(3)/log(2) ≈ 1.585, the same as the Sierpinski triangle since 3 out of 4 parts remain.
How many squares at each iteration?
3ⁿ squares remain after n iterations.
Can the removed quadrant be changed?
Yes — rotating which quadrant is removed creates different visual orientations of the same fractal.