Dragon Curve Generator

Generate and explore recursive space-filling dragon curves, including the classic Heighway Dragon, Twin Dragon, and Levy C Curve.

Presets

Quick-load elegant configurations

Parameters

Adjust fractal shapes

Aesthetics & Styles

Colors, strokes and backdrops

Animation Timeline

Trace the drawing sequence

Zoom: 100%
Heighway DragonDepth: 10
Line Segments1,024
Segment Length3.125%
Total Length32.0 px
Boundary D1.5236

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.

Professional Dragon Curve Generator for Everyone

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.

Recursive Depth Control: Adjust depths up to 14 for the binary dragon and 12 for the Levy C curve
Multi-Fractal Support: Switch between Classic Heighway Dragon, Twin Dragon, and Levy C Curves
Animated Tracing: Watch the path fold recursively segment by segment with playback speed controls
Interactive Viewport: Drag to pan and scroll to zoom in real-time centered on the mouse position
Custom Color Styles: Apply solid colors, start-to-end linear gradients, or full spectrum rainbow cycles
Vector Path Export: Download visuals as transparent PNG images or export scalable SVG vector files
Live Analytical Metrics: Displays drawn segment counts, path lengths, and mathematical fractal dimensions

Key Benefits

Why choose our Dragon Curve Generator for your workflow?

Space-Filling Intuition: Understand how one-dimensional lines fold to cover two-dimensional areas.

Highly 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.

Common Use Cases

Real-world examples of how to use this tool.

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.

How to use Dragon Curve Generator?

Follow these simple steps to get the best results.

Step 1

Select a preset (Classic Dragon, Neon Twin Dragon, Levy C Curve) from the options sidebar.

Step 2

Adjust the Recursion Depth slider to control the level of detail.

Step 3

Customize line thickness, joint styles, and colors.

Step 4

Drag to pan and use the scroll wheel to zoom into specific areas of the fractal.

Step 5

Press Play to animate the drawing sequence, or adjust the speed slider.

Step 6

Export your design by clicking PNG or copy the raw SVG vector code.

Frequently Asked Questions

Common questions about our Dragon Curve Generator tool.

What is a Dragon Curve?

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 is the Twin Dragon?

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 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?

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 highly 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.

Explore All Tools

Expert Insights

Learn more about privacy, image processing, and modern design.

Read Our Blog