Starting with $x = y = 0$, at each iteration, we perform the transformation:

where the values $a, b, c, d, e, f$ are chosen from the following rows, with each row having its relative probability (the last column) of being chosen. That is the whole iterative process of creating the »Barnsley’s fern« fractal. Depending on how the parameters $a,b,c,d,e,f$ and the probabilities are chosen, one can end up with biologically convincing genera of ferns (check the presets below), as well as more abstract fractals. For more information, see the amazing book »Fractals Everywhere« by Prof. Michael Barnsley.

### Can you create your own cool fern?

For the best experience, open this page as a desktop site when browsing from a phone.

a
b
c
d
e
f
Relative probability
Stem
0.00
0.00
0.00
0.16
0.00
0.00
0.01
Leaflets
0.85
0.04
-0.04
0.85
0.00
1.60
0.85
Big left-leaflet
0.20
-0.26
0.23
0.22
0.00
1.60
0.07
Big right-leaflet
-0.15
0.28
0.26
0.24
0.00
0.44
0.07

Number of samples: 100000

Scale

### Fan-art

Magnificent Borovica made by Olivia: