Home▸Drawing with Maths▸Infinite Barnsley Fern Iterated System

Infinite Barnsley Fern Iterated System

Watch the classic Barnsley fern grow point by point from the chaos game: four real affine transformations, picked by their true probabilities (0.01 / 0.85 / 0.07 / 0.07), converge onto the fractal fern attractor in real time.

Drawing with Maths2DModerate60 FPS📱 Mobile-adapted
infinite-barnsley-fern-iterated-system ↗ Open standalone

This simulator runs the real Barnsley fern chaos game: four affine transformations with their true probabilities (0.01, 0.85, 0.07, 0.07) are applied to a single wandering point, one randomly chosen map per step, and every resulting position is plotted. There is no drawn outline anywhere — the frond shape you see is entirely an emergent statistical pattern, the attractor that this random process converges to no matter where it starts. Points are held in a fixed-size instanced buffer that keeps overwriting itself once full, so the fern regrows forever rather than settling into a static image. Adjust the iteration rate, point size and the stem transform's probability to see how each piece of the system shapes the final form.

⚙ Under the hood

Explore the mesmerizing creation of an infinite, self-similar fern using the Chaos Game – adjust parameters to influence fractal detail and color variations in real time.

Barnsley FernFractalsIteration

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)