Complete Technical Guide to Generate Sierpinski Square
Recursive 4-sided Sierpinski square / carpet IFS placing 8 corner & edge sub-squares scaled by 1/3.
Adjust recursion order, geometry parameters, and color palettes live on a High-DPI HTML5 Canvas, with instant PNG and vector SVG export.
Optimal N-Flake Contraction Ratio
r_n = 1 / (2 · (1 + Σ_{k=1..⌊n/4⌋} cos(2πk / n)))
Hausdorff Dim = ln(k) / ln(1 / r_n)
This exact trigonometric contraction factor places n scaled copies around every vertex so adjacent sub-polygons kiss tangentially with zero overlap.
How to Use Generate Sierpinski Square
- 1Slide the recursion depth and adjust fractal parameters live.
- 2Select Rainbow, Plasma, Emerald, or Cyan color themes.
- 3Export crisp PNG images or scalable SVG vector artwork with one click.
Reference Examples & Worked Benchmarks
| Property | Value / Formula | Significance |
|---|---|---|
| Dimension | log₃(8) ≈ 1.8928 | Exact similarity dim |
| Sub-copies | 4 per step | Optional +1 center |
| Export | PNG & SVG | Vector-clean polygons |
Practical Applications & Engineering Workflows
Fractal Geometry & Self-Similarity
Explore exact Hausdorff scaling and recursive construction of Sierpinski Square.
Generative Math Art
Download high-contrast SVG/PNG fractals for publications, posters, and laser cutters.
Accuracy, Edge Cases & Best Practices
- Computed 100% locally in your browser with automatic bounding-box centering.
All calculations execute locally inside your browser using JavaScript with zero server round-trips, guaranteeing instant responsiveness and complete data privacy.