← Back to Dynamical Systems

Fractals - Self-Similarity in Nature

Iterating a small set of rules produces structures that recur in ferns, coral, electrical discharge, lung airways, and river networks. Each figure renders its construction step by step, with colour mapped to a quantitative variable - recursion depth, height, or arrival time. The generating principles are summarised below, followed by the elementary constructions and then the four generators.

Canvas background:

Elementary constructions

Each construction below applies a single operation repeatedly to a line segment or a triangle. Advance one level at a time to observe the successive refinement and its associated dimension.

Cantor set

Level 0

D = log2/log3 ≈ 0.631

Remove the middle third of every segment, forever. Length → 0, yet uncountably many points remain.

Koch curve

Level 0

D = log4/log3 ≈ 1.262

Replace the middle third of each segment with two sides of an equilateral triangle. Total length diverges as the level increases.

Sierpinski triangle

Level 0

D = log3/log2 ≈ 1.585

Subdivide into 4 half-triangles and drop the middle one. Three self-copies at half scale.

Four generators, one for each mechanism above. Adjust the parameters with the controls and re-run. In every case colour encodes a measured quantity rather than serving as decoration.

Ready.
Iterated function system

Barnsley fern

Four affine maps applied with fixed probabilities (the chaos game). One map (probability 0.85) reproduces the main frond at reduced scale; two maps (0.07 each) generate the left and right leaflets; one map (0.01) traces the stem. Colour is mapped to height, from dark green at the base to light green at the tips.

0.04
5
Ready.
Recursive branching

Fractal tree

A single rule applied recursively: each branch bifurcates into two shorter branches at a fixed angle. Line width and colour encode the recursion depth, from brown at the trunk to green (or autumn tones) at the twigs. The tree is drawn one generation at a time and stops once the selected depth is reached.

24°
10
0.72
Ready.
Growth process

Diffusion-limited aggregation

A seed is fixed at the centre. Particles enter from the boundary on random walks and adhere on first contact with the cluster. Because the outer branches intercept most incoming particles, growth concentrates at the tips, producing a branched, self-screening structure. Colour encodes arrival time, from the earliest core to the most recent tips.

1.0
6
Ready.
Escape-time iteration

Julia set

Each pixel is an initial value \(z_0\); iterate \(z_{n+1}=z_n^2+c\) and colour by the number of steps for \(|z|\) to exceed 2 (non-escaping points form the filled set). The Morph control varies \(c\) along a circular path: the set is connected when \(c\) lies in the Mandelbrot set and disconnected (a Cantor dust) otherwise. Colour is the normalised (smooth) escape rate.

140