eureka
experiment 037 · fractal geometry · iterated function system

Barnsley Fern

An iterated function system (IFS) constructed from four affine transformations. By repeatedly applying these simple rules to a single point, a mathematically precise, self-similar structure of a fern emerges.

The Algorithm

The Barnsley Fern is generated using an Iterated Function System (IFS), a method for creating fractals resulting from a set of mathematical rules. In this case, there are four affine transformations applied sequentially to a point $(x, y)$.

Transformations

Each transformation represents a different part of the fern, and is chosen randomly with a specific probability at each iteration step:

← back to workshop