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
- Drag the speed slider all the way left and watch a single point hop. The rule it just used lights up in the table.
- Drag Curl and the fern bends. Every leaflet bends with it, because every leaflet is a copy of the whole.
- Change the p values. The shape stays the same; only how quickly each part fills in changes. Set one to 0, though, and its part of the fern disappears.
- Turn on the outlines. Each one is a single rule's shrunken copy of the whole picture, and the fern is exactly those copies put together.
- Make a rule stretch things instead of shrinking them, and the point flies away. Every rule has to make things smaller for the picture to settle.
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.