Generate Sierpinski Sieve
Draw the Sierpinski sieve (triangle) — the classic fractal formed by recursively removing center triangles.
What is the Sierpinski Sieve?
Pick how many iterations you want, set a fill color, and the classic triangle-inside-triangle pattern draws itself on the canvas. Seven iterations gives you 2,187 tiny triangles and a fractal dimension of about 1.585 — plenty of detail for a poster or a math class slide. And everything runs in your browser. Nothing gets uploaded.
FAQ
How many triangles at each iteration?
At iteration n, 3ⁿ triangles remain. At 7 iterations, that's 2,187 triangles.
What is the remaining area?
The area fraction is (3/4)ⁿ. In the limit, the area approaches zero.
How is this related to Pascal's triangle?
Coloring odd entries in Pascal's triangle produces the same pattern as the Sierpinski sieve.
What is the perimeter?
The total perimeter grows as (3/2)ⁿ × original perimeter, approaching infinity.