Complete Technical Guide to Generate Terdragon Curve
Terdragon fractal generated by replacing each segment with 3 segments turning +120° and −120° (F → F+F−F), yielding 3^n segments.
Every iteration applies exact deterministic L-system string rewriting and auto-fits the resulting turtle polyline cleanly onto a dark High-DPI Canvas with optional vector SVG export.
L-System Definition of Generate Terdragon Curve
Axiom: F Rules: F→F+F-F Angle: 120° | Hausdorff Dimension: 2.0000 (Boundary ≈ 1.2619)
Coloring consecutive segments along a smooth rainbow gradient reveals the exact 1D traversal order across 2D space.
How to Use Generate Terdragon Curve
- 1Slide the Iteration Order from 1 to 8 to watch self-similarity emerge.
- 2Pick Rainbow, Plasma, Emerald, or Multi-Arm color palettes and adjust stroke width.
- 3Download high-resolution PNG or scalable SVG vector artwork with one click.
Reference Examples & Worked Benchmarks
| Property | Value | Notes |
|---|---|---|
| Axiom | F | Starting L-system string |
| Turn Angle | 120° | Turtle rotation step |
| Dimension | 2.0000 (Boundary ≈ 1.2619) | Fractal scaling dimension |
Practical Applications & Engineering Workflows
Spatial Indexing & Computer Graphics
Space-filling curves map 2D coordinates to 1D memory keys while preserving spatial proximity.
Generative Art & Laser Cutting
Export clean SVG paths directly for plotters, SVG editors, and mathematical posters.
Accuracy, Edge Cases & Best Practices
- All L-system expansions and Canvas draws happen 100% locally in your browser in milliseconds.
All calculations execute locally inside your browser using JavaScript with zero server round-trips, guaranteeing instant responsiveness and complete data privacy.