Staaarter

Generate a Quaddragon Curve

Generates our own four-fold extension of the classic Heighway dragon curve, four dragon-curve copies chained together with 90-degree turns between them so they wind around a shared center, rendered as an SVG line-art fractal you can download. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-08-05
By Staaarter Team
fractalgeneratorsvgl-system

Overview

Introduction

The Heighway dragon curve is one of the best-known L-system fractals, a single strip of paper folded in half repeatedly and unfolded to a right angle every time. This tool takes that same folding rule and repeats it four times around a shared center, producing what we call a quaddragon curve.

There's no single textbook definition of a "quaddragon," so this is our own four-fold extension of the dragon curve rather than a term borrowed from a paper or math reference. Enter an iteration count and the tool renders the resulting curve as SVG line art you can download.

What Is Generate a Quaddragon Curve?

A turtle-graphics fractal built from four copies of the classic Heighway dragon curve's L-system rule, laid out with 90-degree turns between each copy so they radiate around one center point instead of one dragon curve running off in a single direction.

It reuses the dragon curve's exact production rule (X becomes X+YF+, Y becomes -FX-Y, turning 90 degrees at every + or -), just starting from a longer axiom that chains four "FX+" segments together.

How Generate a Quaddragon Curve Works

The generator starts from the axiom "FX+FX+FX+FX+" and applies the dragon curve's rewrite rule to every X and Y in the string, for as many iterations as you enter, exactly like the standalone dragon curve tool would for a single "FX".

The expanded string is then walked by a turtle: F draws a unit segment forward, + turns 90 degrees left, and - turns 90 degrees right. Because the axiom already contains four dragon-curve starting points separated by 90-degree turns, the single continuous path winds around a shared center in four-fold fashion as it grows.

The resulting line segments are rescaled to fit the SVG viewbox and drawn as one connected path, so what you see is one continuous line, not four separately colored curves.

When To Use Generate a Quaddragon Curve

Use it when you want a denser, more symmetric variation on the classic dragon curve for generative art, wallpaper patterns, or fractal-geometry demonstrations.

It's also a useful teaching example for how changing an L-system's starting axiom, while keeping the production rule identical, can produce a visually different family of curves.

If you specifically need the standard, single-armed Heighway dragon curve rather than this four-fold variant, use a plain dragon curve tool instead.

Features

Advantages

  • Produces a denser, more symmetric silhouette than a single dragon curve at the same iteration count, since four arms fill the frame at once.
  • Reuses the well-understood dragon-curve production rule, so the fractal detail at each arm is exactly as well-behaved and predictable as the classic curve's.
  • Downloadable as both SVG (for further vector editing) and PNG (for quick use anywhere).

Limitations

  • Not a term with one agreed-upon mathematical definition, this is our construction and won't match a formula found in a textbook labeled "quaddragon."
  • High iteration counts near the maximum of 12 produce very dense, tightly overlapping line art that can be slow to render and hard to visually parse.

Examples

Low iteration count

Input

Iterations: 2

Output

A blocky, angular shape with four short dragon-curve arms just barely visible radiating from the center.

At low iterations the four-fold structure is easy to see before the fine dragon-curve detail fills in.

Default iteration count

Input

Iterations: 8

Output

A dense, symmetric fractal where each of the four arms shows clear self-similar dragon-curve folding.

The default of 8 balances visible fractal detail against render and download performance.

Best Practices & Notes

Best Practices

  • Start around 4 to 6 iterations to see the four-fold structure clearly before increasing toward the denser, more detailed high end of the range.
  • Download the SVG rather than the PNG if you plan to recolor, scale, or further edit the curve, vector output has no resolution limit.

Developer Notes

Implemented as an L-system preset ("quaddragon-curve" in l-system-presets.ts) sharing the standard dragon curve's production rule (X: "X+YF+", Y: "-FX-Y") at a 90-degree turn angle, but starting from the axiom "FX+FX+FX+FX+" instead of "FX". Expansion and turtle interpretation both go through the shared generateLSystemCurve/drawLSystem engine used by every other L-system tool in this category, capped at 12 iterations before geometry normalization and SVG rendering.

Generate a Quaddragon Curve Use Cases

  • Generative art and desktop wallpaper patterns built from fractal curves
  • Classroom demonstrations of how an L-system's axiom shapes the overall fractal layout independent of its production rule
  • Downloadable SVG line art for design projects that want a denser dragon-curve motif

Common Mistakes

  • Expecting "quaddragon" to match a fixed formula from a math reference, this is a self-consistent construction we defined for this tool, not a term with one canonical definition.
  • Setting iterations near the maximum right away; the resulting line density can make the four-fold structure hard to distinguish visually.

Tips

  • Compare against the Hexadragon Fractal Generator to see how the same idea, a folding rule repeated N times around a center, changes shape with a different base rule and fold count.
  • Zoom into the downloaded SVG in a vector editor to inspect how each of the four arms folds independently at high iteration counts.

References

Frequently Asked Questions