Fractals

Fractal Curves

Render recursive curve families with depth control, fitted geometry, and shareable state for line-based fractal exploration.

Scratchpad (not saved)

Curve Viewport

Recursive geometry is regenerated at the selected depth and then fitted to the current canvas. Wheel to zoom and drag to pan.

Depth 40 vertices1.00x zoom0 ms
Koch Snowflake
Cobalt palette
Stroke 1.8 px

Construction Rule

Replace each edge with a four-segment spike to grow a self-similar perimeter.

Current Geometry

Family
Koch Snowflake
Depth
4
Vertices
0

Exploration Tips

  • Higher recursion depth grows path length exponentially, so small depth changes matter.
  • Wheel to zoom and drag to pan when you want to inspect a local turn sequence.
  • Hilbert and Dragon become especially revealing when drawn with thinner strokes.