Eight small machines in one file: generative art, a flock of birds, a fractal you can zoom into, sorting and pathfinding algorithms, Conway's Game of Life, a beat sequencer and a colour palette generator. No server, no libraries. Everything runs in your browser.
Thousands of particles follow the angles of a Perlin noise field. The field slowly changes over time.
Watch each algorithm work step by step. Compare how many comparisons and writes each one needs for the same input.
Each cell lives or dies by counting its eight neighbours. A live cell survives with 2 or 3 neighbours, and an empty cell comes alive with exactly 3.
Generate colour palettes from colour theory rules. Lock the colours you like, then generate again. Each swatch shows its contrast ratio against its label text.
Press Space to generate. Select a hex code to copy it. Use makes that colour the accent for the whole app, including the flow field's "Current accent" colours.
Each bird follows three local rules: keep some distance, match its neighbours' heading and move toward their centre. The flock emerges from those rules alone.
Each pixel is a complex number c. The colour shows how fast z → z² + c escapes to infinity. Points that never escape are in the set. Click to zoom in. Shift+click or right-click to zoom out. Scroll to zoom smoothly.
Watch a search algorithm explore the grid. Shaded cells have been explored and yellow cells are waiting to be explored. Once a path is found, moving a marker or a wall re-solves it instantly.
A 16-step sequencer. Every sound is synthesised live with the Web Audio API: the kick is a falling sine wave, the snare and hi-hat are filtered noise and the notes come from a C major pentatonic scale.
Click a cell to switch a step on or off. Sound starts only after you press Play.