← Back to Paradoxes

The Barnsley Fern

🌿 Infinite Nature from 4 Simple Rules 🌿

Just 28 numbers define an entire fern—every frond, every leaflet. Michael Barnsley showed that nature's complexity can emerge from astonishingly simple mathematics. Roll the dice, apply a transform, repeat. A fern grows from chaos.

0
Points
0%
Stem (f₁)
0%
Body (f₂)
0%
Left (f₃)
0%
Right (f₄)

Fern Presets

Transform Probabilities

f₁ Stem 1%
f₂ Body 85%
f₃ Left leaf 7%
f₄ Right leaf 7%

Speed

Color

Nature from Numbers

🗜️ Ultimate Data Compression

28

Just 28 numbers (coefficients for 4 affine transformations) encode an entire fern. This is millions-to-one compression—the foundation of fractal image compression!

The Affine Transformation

x' = a·x + b·y + e
y' = c·x + d·y + f

Each transform has 6 coefficients (a, b, c, d, e, f) plus a probability weight

The Chaos Game

Start anywhere. Roll weighted dice to pick a transform. Apply it. Plot the point. Repeat. After thousands of iterations, the fern magically appears—attracted to this fractal shape.

Four Transforms

f₁ (1%): Creates the stem—maps everything to a line.
f₂ (85%): Shrinks and lifts—creates the main body.
f₃ (7%): Rotates left—makes left leaflets.
f₄ (7%): Rotates right—makes right leaflets.

Self-Similarity

Each small leaflet is a tiny copy of the whole fern. Zoom in anywhere and you see the same structure repeating. This is the essence of fractals—infinity in finite space.

Why Nature Uses This

Real ferns grow using recursive genetic instructions—"grow a frond, then grow smaller fronds on it." Evolution discovered IFS-like algorithms billions of years before mathematicians!