Draw Heighway Twins Fractal screenshot

Draw Heighway Twins Fractal

Draw the twin-dragon version of the Heighway curve: two mirrored dragons sharing one start point, with an adjustable gap.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Runs in this tab

Two dragons, one mirror

The twins are the standard twin-dragon construction: draw the Heighway dragon once, then draw it again with every x coordinate negated. That mirrors the second curve across the vertical axis, so the pair shares a starting point and reads as one symmetric figure. The gap control slides the two halves apart in curve-widths without changing either shape.

Each curve has 2^n segments, so the page draws twice that many strokes. Depth is therefore capped at 13 rather than the single-dragon page's 14: two curves of 8,192 segments is the same 16,384-stroke budget, and the turn table is built twice per redraw.

The mirror is exact, not hand-adjusted, so the two halves can never drift apart. Everything is computed in the tab from the depth and gap you set, and reloading reproduces the same pair.

Draw two Heighway dragons side by side, mirrored copies separated by a gap you set in curve widths.

Both curves are generated from the same fold rule: the gap moves them apart, and nothing about the shape is free-hand.

How to use it

Set the depth and the gap, then press Draw or Animate. A gap of 0 makes the twins share their starting point; larger values pull them apart. Stop ends the animation.

The rule

Each twin is the same right-angle dragon at the same depth, one mirrored. The status line reports the combined stroke count, which is twice the single curve's segment count.

Where it stops

Depth is capped at 13, where the two curves together are 16,384 strokes. The gap changes only the placement, never the fold sequence, and there is no export and no seed.

What to Expect

Best for

  • seeing how two copies of one curve sit against each other
  • checking the dragon at a given depth twice over

What this tool keeps

  • Both curves are generated and drawn in this tab; nothing is uploaded and no image is kept.

Frequently asked questions

What is the gap measured in?

Curve widths. Zero makes the twins share their starting point; a larger value moves them apart without changing either curve's shape.

Are the two curves different?

No. One is a mirrored copy of the other at the same depth, so changing the depth changes both and changing the gap changes neither.

Why is the depth capped at 13?

Because the cap counts both curves: two curves of 2^13 segments each is 16,384 strokes, which is where this canvas stops resolving the detail.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.