Fractals

Shapes that repeat inside themselves: one rule applied again and again, from glowing sets in 2D to branching bolts and solid fractals in 3D.

Take them in this order: each one uses what the ones before it showed. The same shaders, newest first, are on the topic’s page.

Sign in and the exercises you pass are marked here. Nothing is kept otherwise.

  1. Step 1 of 4

    Fractal Glow

    A Julia set glowing like metal in the kiln, its shape changing as the number that makes it walks round the edge of the Mandelbrot set, colored by a smooth count of how quickly each point flies away, with a sound that plays the orbit of zero as an arpeggio.

    Teaches: Complex numbers, Julia sets, smooth iteration color

    Builds on Flowing Color Field, Floating 3D Scene, Kaleidoscope

    5 exercises
    1. Stay or escape Make this step
    2. Counting the steps Make this step
    3. Fractal glow Finish it
    4. Match the sliders Find the values
    5. Find the bug Put it right
  2. Step 2 of 4

    Mandelbulb

    Fractal Glow's squaring loop in three dimensions. Every point in space is raised to a power again and again, written as a distance and two angles, and the points that never run away make the bulb, buds on buds on buds. A ray can't find a surface like that by stepping blindly, so the same loop also works out how far the ray may safely step. The bulb glows in the kiln's dark, colored by where each point's orbit went, its power slowly breathing.

    Teaches: 3D fractals, distance estimators, orbit-trap color

    Builds on Floating 3D Scene, Fractal Glow

    5 exercises
    1. Shade in the folds Make this step
    2. Orbit traps Make this step
    3. Mandelbulb Finish it
    4. Match the sliders Find the values
    5. Find the bug Put it right
  3. Step 3 of 4

    Lightning

    A storm at night over a field. Each bolt is a straight line from the cloud to the ground, split again and again by midpoint displacement until it is as rough as lightning, with branches grown the same way. A faint leader comes down, the return stroke lights the bolt and the clouds, and the thunder leaves the strike as a ring on the ground that reaches you, and your ears, seconds after the flash.

    Teaches: Branching bolts by midpoint displacement, glow, thunder that arrives late

    Builds on Flowing Color Field, Cracked Clay, Murmuration, Rain on Glass, Pulse Synth

    3 exercises
    1. The strike Make this step
    2. Near and far Make this step
    3. Match the sliders Find the values
  4. Step 4 of 4

    Menger Sponge

    A box cut into 27 smaller boxes with seven taken out, then every box that is left cut the same way, and theirs. Four rounds are 160,000 boxes, and the shader makes none of them. It folds space so that every point lands in one small cell, cuts one cross-shaped hole there, and lets a loop repeat the cut at a third of the size. A fire in the middle lights the tunnels, and the sound cuts a bar of time by the same rule.

    Teaches: Folding space into a fractal, a box cut again and again

    Builds on Floating 3D Scene, Kaleidoscope, Molten Metaballs, Ember Tunnel, Mandelbulb

    5 exercises
    1. The fold Make this step
    2. A fire inside Make this step
    3. Menger Sponge Finish it
    4. Match the sliders Find the values
    5. Find the bug Put it right

Other paths Start here Noise & Texture Shapes & Symmetry 3D Scenes Particles & Simulation Light & Materials Atmosphere Geometry Sound & Rhythm