Dragon Curve Generator
Generate and explore recursive space-filling dragon curves, including the classic Heighway Dragon, Twin Dragon, and Levy C Curve.
Last updated: May 30, 2026
Presets
Quick-load elegant configurations
Parameters
Adjust fractal shapes
Aesthetics & Styles
Colors, strokes and backdrops
Animation Timeline
Trace the drawing sequence
How to Navigate the Viewport
Click and drag your mouse on the canvas area to pan around the fractal curve. Use your scroll wheel (mouse scroll) or pinch gestures on trackpads to zoom in and out. If the fractal goes out of view, click the Recenter button at the top left of the viewport bar to return to default scale bounds.
Dragon Curve Generator — No Uploads Required
An advanced interactive simulator for recursive space-filling curves. Generate the classic binary Harter-Heighway Dragon curve, the back-to-back symmetric Twin Dragon, and the 90-degree self-overlapping Levy C Curve. Adjust recursion depths, line thickness, and color gradients. View the generation sequence via step-by-step path tracing animations. Pan and zoom around the details of dense vector lines, and download finished drawings as transparent PNG images or copy scalable SVG vector coordinates.
Why This Tool Exists
What makes this useful — and why I built it this way.
Space-Filling Intuition: Understand how one-dimensional lines fold to cover two-dimensional areas.
Optimized: Built with client-side canvas paths to support drawing thousands of segments at 60 FPS.
Educational Tool: Perfect for learning about self-similarity, paper-folding sequences, and Hausdorff dimensions.
When You'd Use This
Real situations where this tool saves the day.
Education: Interactive visual lessons on geometric recursion and fractal mathematics.
Digital Art: Design complex organic patterns, tech graphics, or poster backdrops.
Coding Benchmarks: Test recursive line generation algorithms and viewport transformation performance.
Using Dragon Curve Generator
It's straightforward — here's how it works.
Select a preset (Classic Dragon, Neon Twin Dragon, Levy C Curve) from the options sidebar.
Adjust the Recursion Depth slider to control the level of detail.
Customize line thickness, joint styles, and colors.
Drag to pan and use the scroll wheel to zoom into specific areas of the fractal.
Press Play to animate the drawing sequence, or adjust the speed slider.
Export your design by clicking PNG or copy the raw SVG vector code.
Questions People Ask
Honest answers about how this works.
What even is a Dragon Curve?
Honestly? The Dragon curve is a self-similar fractal curve that can be constructed by recursively folding a strip of paper in half in the same direction, then unfolding it so each fold is a 90-degree angle.
What even is the Twin Dragon?
Honestly? The Twin Dragon (also known as the Davis-Knuth dragon) is a fractal shape formed by placing two Heighway Dragon curves back-to-back. It is particularly interesting because it can cleanly tile the plane.
What even is the Levy C Curve?
The Levy C Curve is a self-similar fractal first described by Paul Lévy. Unlike the Heighway Dragon which alternates fold directions, the Levy C Curve folds to the same side at every recursive step, producing a beautiful ornamental shell-like boundary.
What is the difference between a curve's dimension and its boundary's dimension?
Honestly? In the limit, space-filling curves like the Heighway Dragon completely cover a 2D region, so their overall Hausdorff dimension is 2. However, their boundaries are jagged, non-rectifiable curves with fractional dimensions: the Heighway Dragon boundary has a Hausdorff dimension of approximately 1.5236, while the Levy C curve has a boundary dimension of 2.
Discover More Tools
Hand-picked utilities to speed up your workflow.