0 points
Calming Motions

Barnsley's fern

Four rules, picked at random over and over, grow this fern. Change the rules and grow a different one.

Shape

0.0°
100%
0.0°
0.0°
100%
0.000

Drawing

Colours

Rules

Each rule moves a point (x, y) to (ax + by + e, cx + dy + f). The p column sets how often each rule is picked.

Rule a b c d e f p Remove

How the fern grows

Start with a point anywhere. Pick one of the rules at random, using the p values as the odds, and move the point to wherever that rule sends it. Then do it again from the new spot, and again. After a few dozen moves the point is on the fern and never leaves it. Every place it lands becomes a dot in the picture. This method is called the chaos game.

Each rule is an affine map. It stretches, squashes, turns and shifts the whole plane in a single step:

x′ = ax + by + e
y′ = cx + dy + f

What each rule does

f₁, the stem
Flattens the whole fern onto a short vertical line at its base.
f₂, the rest of the frond
Makes a slightly smaller, slightly turned copy of the entire fern, sitting just above the lowest pair of leaflets. That copy contains its own smaller copy, and so on, so the frond keeps going.
f₃ and f₄, the lowest leaflets
Each is the whole fern again, shrunk and swung out to one side. Look closely at any leaflet and you'll find it has leaflets of its own.

Things to try

Where it comes from

Michael Barnsley described this fern in his 1988 book Fractals Everywhere. The Cyclosorus and Culcita settings use different numbers that grow ferns resembling those two genera.