Barnsley Fern
Visualization
Open in IFStile ↗
AIFS program
@
$dim=2
f1=[0,0,0,0.16]
f2=[0,1.6]*[0.85,0.04,-0.04,0.85]
f3=[0,1.6]*[0.2,-0.26,0.23,0.22]
f4=[0,0.44]*[-0.15,0.28,0.26,0.24]
S=(f1|f2|f3|f4)*S
Overview
The Barnsley Fern is a fractal named after British mathematician Michael Barnsley. It is a classic example of an IFS attractor that closely resembles a natural black spleenwort fern (Asplenium adiantum-nigrum). The fern demonstrates how biological shapes can emerge from simple mathematical rules.
Barnsley first described this IFS in his 1988 book Fractals Everywhere. The four affine transformations are chosen so that one maps the entire fern to its stem, one to the successively smaller leaflets, and two to the bottom left and right fronds.
Definition
The Barnsley Fern is defined by four affine transformations applied with given probabilities:
Transformation 1 — Stem
Transformation 2 — Successively smaller leaflets
Transformation 3 — Left frond
Transformation 4 — Right frond
Properties
- Fractal dimension: ≈ 1.6667 (Hausdorff dimension)
- Self-similarity: Each frond is a scaled and rotated copy of the whole fern
- Number of transformations: 4
- Random iteration: The chaos game algorithm samples this attractor with probabilities p₁=0.01, p₂=0.85, p₃=0.07, p₄=0.07
References
- Barnsley, M. (1988). Fractals Everywhere. Academic Press.
- Barnsley fern — Wikipedia