Drawn in Code

Interactive art, physics toys and game assets. Every piece runs in the browser and is made from code, not stock footage or scans. Idea and art direction by me, built with Claude. Tap any piece to play it.

Snicker-Snack

A playable mod for Half Sword: the Conyers Falchion (about 1260–70), modeled at 1:1 from the real sword's measurements, with its heraldic pommel faces, the dragon on the blade and textures made for the game. It carries its true 1.3 kg weight, cuts with a real edge and takes blood.

The whole sword, 1:1
The whole sword, 1:1
Hilt and wheel pommel
Hilt and wheel pommel
Pommel face: three lions
Pommel face: three lions
Pommel face: eagle
Pommel face: eagle
Dragon on the blade
Dragon on the blade
In Half Sword: the eagle face
In Half Sword: the eagle face
In Half Sword: the lions face
In Half Sword: the lions face
In Half Sword: the cross-guard
In Half Sword: the cross-guard
In Half Sword: the clipped point
In Half Sword: the clipped point

Interactive pieces

Real-time physics and light in WebGL: soft bodies, fluids, splats, chaos and the night sky. Each one opens and runs on a phone or desktop.

Under the Table
3D game

Under the Table

A field mouse in a thimble helm duels a robot vacuum boss under a kitchen table. Three phases, a suction vortex that really pulls, and a dust bin that pops open when you bait it into a table leg.

Reinefjorden
Scene

Reinefjorden

Hamnøy in Lofoten on the last day of February: red fishing cabins on stilts, granite peaks and a mirror fjord, built from the real 1 m terrain model and the real sun position.

Dandelion Clock
Gaussian splats

Dandelion Clock

72,000 splats generated on the GPU every frame, 175 seeds backlit at golden hour. Swipe and the wind takes them.

The Dune Tray
Physics toy

The Dune Tray

A pine tray of desert sand and a fan you drag around the rim. Below the threshold wind nothing moves. Above it, ripples and dunes form the way Bagnold measured them.

Kiwi
Gaussian splats

Kiwi

About 140,000 hairs made in code, not scanned, each rooted on the skin and combed toward the blossom end.

Crème Caramel
Soft body

Crème Caramel

A real soft body on a plate. Cut it and the caramel runs out.

Jelly Melon
Soft body

Jelly Melon

A gelatin watermelon on a picnic cloth that slices where your knife goes. After Vib3Coded's jelly watermelon, on our own engine.

Liquid Center
Soft body

Liquid Center

Six giant gummy bears, each a gelatin shell around a syrup center.

Water Balloon
Soft body

Water Balloon

834 ml of water in a latex skin. Rubber pulls in, water won't shrink, and every shape is where the two agree.

Moon Jelly
Creature

Moon Jelly

A Gulf moon jelly pulsing in a mason jar of its own water, lit from a window.

The Nature Aquarium
Scene

The Nature Aquarium

An Amano-style planted tank at golden hour with real caustics and schooling fish. Caustics and fish after Scottie Fox's CAUSTIC//VOLUME (MIT).

The Reef
Scene

The Reef

A 120 cm saltwater reef on the same engine: corals, an anemone, shrimp, hermit crabs and snails going about their day.

Tesla's Lab
Scene

Tesla's Lab

A Tesla coil throwing lightning in a timber lab at night.

Chladni's Glass
Physics toy

Chladni's Glass

Sand on a vibrating glass plate finding the nodal lines of each mode.

Ferrofluid
Physics toy

Ferrofluid

Black magnetic fluid that stands up in spikes over a magnet that follows your finger.

Marbling
Physics toy

Marbling

Ebru: ink floated on water and drawn through with a stylus. It's an exact area-preserving map, so nothing ever mixes.

Lichtenberg
Generative

Lichtenberg

A lightning tree grown one particle at a time by diffusion-limited aggregation.

Aurora
Scene

Aurora

Under the auroral oval at 65° north. Each colour glows at the height where its atom can.

M42
3D volume

M42

The Orion Nebula as a volume you can fly around. From the side it's a bowl hollowed out by the Trapezium stars.

First Light
Generative

First Light

The Orion Nebula lit from inside. Click to switch on a new star.

The Telescope
Scene

The Telescope

A 76 mm brass refractor in a winter back yard, aimed at the Orion Nebula as it crosses the meridian.

Ship in a Bottle
Scene

Ship in a Bottle

A tall ship in a storm sealed in glass. One wave function drives the sea and her buoyancy.

Double Pendulums
Physics toy

Double Pendulums

300 double pendulums a millionth of a degree apart, swinging as one until chaos fans them into a rainbow.

Lava Lamp
Physics toy

Lava Lamp

Wax and liquid that trade places because heat swells them at different rates.

The Escapement
Mechanism

The Escapement

A brass skeleton clock that keeps its own time through a Graham deadbeat escapement.

The Wrench Case
Object

The Wrench Case

A walnut case on brass hinges, opening on a real axis to an orange wrench in charcoal felt.