Draw Moore Fractal
Draw the Moore curve (Eliakim Moore 1900) - closed-loop space-filling fractal. Start/end markers, 4-fold symmetry. Free, offline, client-side, instant, secure.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Eliakim Hastings Moore's 1900 space-filling curve - a closed-loop variant of David Hilbert's 1891 construction. Renders via L-system with axiom LFL+F+LFL and 90° turns. Sister tool: draw-hausdorff-fractal is a Hilbert + Moore multi-pattern explorer.
How to Use Draw Moore Fractal
- Pick iterations (0-7). Iter N produces ~4 × N segments roughly. Iter 4 = 1,280 segments, iter 7 = 81,920. Iter ≥ 6 triggers "Drawing…" loading state.
- Set segment length (1-20 px). Curve auto-scales to fit canvas with 40 px padding.
- Pick curve and background colors. Low-contrast pairings trigger an info-toast warning.
- Adjust line width (0.5-5 px). Thin lines (0.5-1) at high iter (6+) reveal more detail; thick lines (3-5) at low iter (1-3) emphasise the geometric structure.
- Enable Start/End markers to see the closed-loop property: green dot = start, red dot = end. At high iterations they're nearly overlapping - that's the curve "closing back on itself" - the defining feature that makes Moore different from Hilbert.
- Press Ctrl+Enter or click Draw. Stats show segments, dim (2.0 = space-filling), iteration, total length, L-system char count, endpoint distance, render time.
- Copy or Download. Copy puts PNG bytes on clipboard via ClipboardItem. Download saves
moore-curve-iter-N.png.
Frequently Asked Questions
What is the Moore curve?
Eliakim Hastings Moore’s 1900 variant of David Hilbert’s 1891 space-filling curve. Same dimension (2.0 – truly space-filling), same 90° turns, same recursive subdivision structure. Key difference: Moore’s curve is a CLOSED LOOP – the start and end of the curve are adjacent in 2D. Hilbert’s curve is open – start at one corner, end at the diagonally-opposite corner. The closed-loop property makes Moore useful for cyclic traversal problems where you need to come back to the start.
Who was Eliakim H. Moore?
American mathematician (1862-1932). Founded the Mathematical Department at the new University of Chicago in 1892. Trained an unusual number of influential 20th-century American mathematicians – students included G.D. Birkhoff (ergodic theorem), Leonard Dickson (number theory), Oswald Veblen (topology), R.L. Moore (his namesake-but-not-related, point-set topology), and the Bourbaki group’s influence. His 1900 closed-curve construction appeared as a footnote in a paper extending Hilbert’s work – he didn’t see it as a major contribution. The curve is sometimes called “Moore’s variant” or “Hilbert-Moore closed curve.”
What’s the L-system?
Axiom: LFL+F+LFL. Rule: L → -RF+LFL+FR- and R → +LF-RFR-FL+. Both L and R are interpreted as draw-forward (along with F). + = turn right 90°. – = turn left 90°. This is a non-canonical formulation – some references treat L/R as non-drawing state symbols (like with Hilbert). Both formulations produce visually-identical Moore curves; this one is just simpler to render (fewer special cases in the renderer).
Why is the dimension exactly 2?
Self-similarity: dim = log(N)/log(S) where N copies at scale 1/S. Moore: 4 copies at scale 1/2 (the 2×2 subdivision pattern), so dim = log(4)/log(2) = 2. Dimension 2 confirms space-filling: the limit set covers a 2D region with positive Lebesgue measure (a 4-fold-symmetric square in the Moore case, slightly larger than the Hilbert curve’s region due to the closed-loop overhead).
What does the start/end marker mode reveal?
It shows the closed-loop property. Enable the toggle – green dot at start, red dot at end. At iter 0 they’re far apart (separate corners of the axiom shape). At iter 1-2 they get closer. At iter 5+ they’re nearly overlapping – visually adjacent. The stats line shows “endpoints distance” in pixels: a small number confirms closure. Compare to Hilbert curve: there, start and end are at opposite corners – distance is roughly the canvas diagonal.
How does this differ from draw-hausdorff-fractal?
Sister tool. That one is a multi-pattern explorer with both Hilbert and Moore curves selectable side-by-side. THIS tool is Moore-only, with start/end-marker emphasis to demonstrate the closed-loop property. Pick this one if you specifically want to study Moore’s closed-loop variant. Pick the sister tool if you want to compare Hilbert and Moore curves visually side-by-side.
Why is iteration capped at 7?
Iter 7 ≈ 82,000 drawing operations. Iter 8 would be ~330,000 – at which point Canvas path stroke takes seconds and the L-system string itself is ~100 KB. Iter 7 stays under 2 s on desktop, 4 s on mobile. Going higher would require multi-frame rendering (requestAnimationFrame yielding) and offers no new visual information – segments become sub-pixel.
Is my data secure?
Yes – 100% client-side. L-system expansion and Canvas drawing run in your browser. No parameters or images leave your device. Verify via your browser’s Network tab.
Related Tools
Draw Canopy Fractal →
Draw a canopy-tree L-system fractal in your browser. 7 iterations, custom colors, gradient depth,…
Draw Cantor Dust Fractal →
Draw true Cantor Dust (4-corner) or Sierpiński carpet (8-square) in your browser. Color modes,…
Draw Cantor Fractal →
Draw the Cantor set with middle-third deletion. 0-10 iterations, custom colors, dimension and measure…
Draw Flowsnake Fractal →
Draw the Gosper curve hexagonal space-filling fractal in your browser. Iterations 1-6, custom colors,…
Draw Frosty Fractal →
Draw Frosty Fractal online, free and private. Runs in your browser, no upload, instant…
Draw Hausdorff Fractal →
Draw the Hilbert curve or Moore curve (closed-loop variant) - true space-filling fractals (dim…
Draw Heighway Fractal →
Draw the Heighway dragon (paper-folding fractal) with fire gradient and symmetry modes. L-system based.…
Draw Hexaflake Fractal →
Draw the hexaflake (hexagon snowflake) - 7-hexagon recursive fractal with 6-fold symmetry. Custom colors,…
Draw Hilbert Fractal →
Draw the Hilbert space-filling curve in your browser. 9 iterations, rotation, gradient, endpoints. Free,…
Draw Koch Fractal →
Draw Koch curve, snowflake, or anti-snowflake at any angle. Iterations 0-7. Free, offline, client-side,…
Draw Levy Fractal →
Draw the Lévy C-curve (Paul Lévy 1938) - space-filling fractal at 45°. Gradient and…
Draw Mcworter Dendrite Fractal →
Draw Mcworter Dendrite Fractal online, free and private. Runs in your browser, no upload,…