McWorter Dendrite Fractal
Draw McWorter's pentigree dendrite fractal with custom iterations, colors, and line width
Generate McWorter’s pentigree dendrite fractal — a five-fold branching pattern built from 72-degree L-system substitution rules. Set iterations (1 through 8), pick line and background colors, adjust stroke width, then hit Draw to render up to 390,625 segments on a canvas you can save as PNG. And everything runs in your browser. Nothing gets uploaded.
How It Works
The fractal starts with one straight line. At each iteration, every segment gets replaced by the production rule F+F-F--F+F+F, where + and - are left and right turns of 72 degrees. So iteration 1 gives you 5 segments, iteration 2 gives 25, iteration 3 gives 125 — it grows fast. The browser calculates all segment positions, then draws them onto an HTML5 canvas in one pass.
Examples
Quick Poster Background
Need an organic-looking pattern for a science poster in under a minute.
Iterations: 5
Line color: #1e3a5f
Background: #f8f4e8
Line width: 1.5
3,125 segments drawn
Navy branches on parchment
PNG ready to download
High-Detail Fractal Art Print
You’re making a large-format print and want maximum detail. Crank the iterations up and use a thin line for that etched-glass look.
Iterations: 7
Line color: #ffffff
Background: #0a0a0a
Line width: 0.5
78,125 segments
White-on-black dendrite
Render takes 2-3 seconds
Math Class Demonstration
Showing students how iteration depth changes a fractal — start at 1, step through to 4, screenshot each one.
Iterations: 1 → 2 → 3 → 4
Line color: #e11d48
Background: #ffffff
Line width: 3
5 → 25 → 125 → 625 segments
Clear growth visible at each step
Thick red lines on white
Who Uses This
Generate organic fractal patterns for album covers, posters, and textile prints without needing to code anything.
Walk students through L-systems and self-similarity by stepping through iterations one at a time.
Grab a quick fractal PNG for placeholder graphics, loading screens, or generative art experiments.
Visualize pentagonal substitution tilings and dendrite growth models for papers and presentations.
Common Mistakes
That’s 390,625 line segments. On a slower machine, the browser might freeze for 10+ seconds. Start at 5 or 6 and work your way up once you’ve found the colors you like.
A line width of 5 looks great at iteration 3, but at iteration 7 the segments are so short that thick lines blob together into a solid mass. Drop the width below 1 for anything above iteration 5.
Light gray lines on a white background? The fine branches at higher iterations will be invisible. Pick colors with strong contrast — dark on light or light on dark works best.
Technical Details
- Processing: 100% client-side (Canvas API)
- Browser Support: Chrome, Firefox, Safari, Edge
- Max Iterations: 8 (390,625 segments)
- Export Format: PNG at full canvas resolution
- Angle System: Pentagonal — 72° turns
Frequently Asked Questions
What is a McWorter dendrite fractal?
It’s a fractal built on pentagonal symmetry — every line segment splits into five smaller ones at 72-degree angles. The result looks like a crystalline tree or frost pattern. It was described by William McWorter and is sometimes called the “pentigree” because of the five-fold branching.
How is this different from a Koch snowflake?
The Koch snowflake uses 60-degree angles and creates a closed, symmetric border. The McWorter dendrite uses 72-degree angles and produces an open, branching structure — more like a tree than a snowflake. The production rule is also different: F+F-F--F+F+F instead of Koch’s F+F--F+F.
Why does my browser slow down at high iterations?
Segment count grows exponentially — 5 to the power of your iteration number. Iteration 7 means 78,125 line segments, and iteration 8 hits 390,625. Your browser has to calculate coordinates for each one and then draw them all. Most modern machines handle iteration 7 fine, but 8 can take a few seconds.
Can I use the generated fractal commercially?
Yes. The fractal is generated by your browser on your machine. There are no licensing restrictions on the output — you own the PNG you download. Use it for prints, merchandise, websites, whatever you want.
What does the L-system production rule F+F-F--F+F+F mean?
F means “draw a line forward.” The + sign turns left by 72 degrees, and - turns right by 72 degrees. So F+F-F--F+F+F reads as: draw forward, turn left, draw forward, turn right, draw forward, turn right twice, draw forward, turn left, draw forward, turn left, draw forward. Each iteration replaces every F with this whole sequence, which is how the fractal grows.