fern, a Python code which computes and displays the Barnsley fractal fern.


The computer code and data files described and made available on this web page are distributed under the MIT license


fern is available in a MATLAB version and a Python version..

Related Data and Programs:

fibonacci_spiral, a Python code which displays points on a Fibonacci spiral, suggesting the arrangement of seeds in a sunflower, for instance.

hilbert_curve, a Python code which computes the sequence of discrete Hilbert curves whose limit is a space-filling curve.

mandelbrot, a Python code which generates an ASCII PPM image of the Mandelbrot fractal set;


  1. Michael Barnsley,
    Fractals Everywhere,
    Academic Press, 1988,
    ISBN: 0120790696,
    LC: QA614.86.B37.
  2. Cleve Moler,
    Experiments with MATLAB,
    ebook: https://www.mathworks.com/moler/exm/index.html

Source Code:

Last revised on 07 June 2022.