Starting with , at each iteration, we perform the transformation:
where the values 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 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.
Number of samples: 100000
Magnificent Borovica made by Olivia: