Generate a Twindragon Curve
Draw a Davis-Knuth dragon fractal. Runs entirely in your browser, so your data never leaves your device.
Output
The result appears here as you type.
How to use Generate a Twindragon Curve
- 1. Set the iteration count. Choose Iterations for how detailed the joined shape becomes. An 11-iteration twindragon already shows a dense, plane-tiling silhouette typical of published examples.
- 2. Size the canvas. Set Width (px) and Height (px) to fit the combined shape of two joined dragons, which together cover more area than a single dragon curve at the same iteration count.
- 3. Pick colors and line width. Choose Line color, Background color and Line width to control whether the two joined dragon halves stay visually distinct or blend into one unified silhouette.
- 4. Review the rendered twindragon. The tool joins two Heighway dragons head-to-tail into a single plane-tiling shape, rendered as an SVG. Save it once the level of detail matches what you need.
When to use Generate a Twindragon Curve
Generate a Twindragon Curve joins two Heighway dragon curves head-to-tail, known as the Davis-Knuth dragon, producing a shape notable for tiling the plane without gaps or overlaps when copies are arranged correctly. It extends the single dragon curve into a plane-tiling composite.
- Teaching plane-tiling fractal properties. The twindragon is a well-known example of a fractal shape that can tile the plane, making it a good bridge between fractal geometry and tessellation theory.
- Comparing single and joined dragon curves. Rendering the twindragon next to the standard single dragon curve at the same iteration count shows how joining two copies produces a noticeably different, more filled-in silhouette.
- Exploring the Davis-Knuth dragon by its historical name. The twindragon is also known as the Davis-Knuth dragon after the mathematicians who studied it, and rendering it helps connect that name to the actual composite shape.
- Designing a tiling-based generative art pattern. Since twindragon tiles can fit together to cover the plane, this shape is a natural starting point for a generative art project exploring fractal tessellations.
Examples
An 11-iteration twindragon
Output
An SVG drawing of two Heighway dragons joined head-to-tail into one plane-tiling shape.
About the Generate a Twindragon Curve tool
Generate a Twindragon Curve does its work locally, right in the browser. Draw a Davis-Knuth dragon fractal. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the Math Tools collection on EditSafely, a set of 234 small, focused Math utilities that share the same instant, private workspace.
You can shape the output with 6 settings, including Iterations, Width (px), Height (px) and Line color, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.
Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Does Generate a Twindragon Curve cost anything?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Does the generator send anything to a server?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
How do I get a different result?
Run the generator again. Each run is computed fresh on your device, and any options you change are applied to the next result immediately.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
Can I save what the tool produces?
Yes. Use the download or copy controls in the output panel to keep the rendered result once it looks the way you want.