The Lab

Things to play with.

Between contests, a few mathematical toys. Each one runs entirely in your browser: turn the knobs, see what happens, and read where the idea came from.

The toys

Topics
A magic square drawn as columns of stone, with water pooled in its low middle From Al Zimmermann's 2010 contest

Retaining Water

A computer searches for magic squares that hold the most rainwater, live in your browser. Load any record square, turn it in 3D, and try to beat it.

Simulated Annealing · Optimization · Magic Squares Open Retaining Water →
A bronze sphere carved from a gyroid lattice, full of curving tunnels A nod to the sculpture prizes

Lattice Foundry

Build a gyroid or one of its cousins, trim it to a sphere, cube or ring, check that it will print, and download the STL to print your own.

Geometry · 3D Printing Open Lattice Foundry →
A deep zoom into the Mandelbrot set: a dark bulb ringed with fiery spirals Julia, 1918 · Mandelbrot, 1980

Fractal Explorer

Dive into the Mandelbrot set, see the Julia set behind any point, and try the Burning Ship, the Tricorn, higher powers and Newton's method.

Fractals · Chaos Theory · Complex Numbers Open Fractal Explorer →
Sierpiński's triangle in three colours, made of dots Sierpiński, 1915 · Barnsley, 1988

The Chaos Game

Click a few points, then jump toward them at random, a million times. Out of the noise comes Sierpiński's triangle, or a snowflake, or a carpet.

Fractals · Chaos Theory · Randomness Open The Chaos Game →
The tangled, glowing trails of ten double pendulums that started almost together and have scattered across the screen Chaos theory

Pendulums

One pendulum swings like a clock. Hang another from it and it never repeats. Start ten of them a ten-thousandth of a degree apart and watch them part company.

Chaos Theory · Physics · Simulation Open Pendulums →
A heart traced in orange by the tip of a chain of spinning circles, each riding on the last Joseph Fourier, 1807

Can circles draw anything?

Draw any shape and watch a chain of spinning circles trace it. Start with one circle and add more: a blob sharpens into your drawing.

Fourier Series · Waves · Complex Numbers Open Can circles draw anything? →
A pack of evolved bikes with big wheels climbing a green hill at night Genetic algorithms, 1975

Evolving Bikes

A genetic algorithm builds bikes from random parts and races them over hills that never stop growing. The furthest riders breed. Watch random junk turn into climbers.

Genetic Algorithm · Evolution · Optimization · Simulation Open Evolving Bikes →
A glider gun of amber cells firing a diagonal stream of small gliders across a dark grid John Conway, 1970

The Game of Life

A grid of cells and three simple rules, with no player at all. Draw a few cells, press play, and watch gliders crawl, oscillators blink and a gun fire forever.

Emergence · Cellular Automata · Computation Open The Game of Life →
A flock of coloured arrow-shaped birds swirling in loose groups across a night sky Craig Reynolds, 1986

Boids

Hundreds of birds, each following three simple rules about its neighbours. Nobody leads, and a flock appears anyway. Play the hawk and watch it split.

Emergence · Swarm Intelligence · Simulation Open Boids →
The Bubble Universe in full colour: an orb of glowing, tangled strands on black A few lines of BASIC, 2020 onwards

Bubbleverse

The "Bubble Universe": a few lines of sine and cosine that draw a swirling orb, as ZX Spectrum BASIC (at real 1982 speed, if you're patient) or in full colour.

Generative Art · Retro Computing Open Bubbleverse →
A grid of green pixels. It is hiding a message. Steganography, since 1499

Pixel Smuggler

Hide a secret message in random colours or your own photo: plain, scrambled, or encrypted with a password and salt, in order or scattered. Save it, send it, read it back. (This card is hiding one too.)

Steganography · Cryptography · Binary Open Pixel Smuggler →