Four satoshis, set in a gummy bitcoin.
Cut close to one and it rolls away.
Not your knife, not your coins.
Hand Grab any piece and pull; holding it, scroll, or add a second finger,add a second finger to twist. Tap it to rattle the sats inside. Flick a loose coin to roll it; tap it for heads or tails. Drag the table to look around, scroll there to zoom. Knife Draw a line across the slice — the knife lines up over it and cuts when you let go. Cut close to a satoshi and it works loose and rolls. Cut the pieces again, as small as you like. Reset makes it whole again. Light Press and drag across the table: the lamp is held over the spot under your pointerfinger. Above the slice it shines straight down, far out it rakes low. Shadows, caustics and the glow follow it. Double-clickDouble-tap to put it back.
Illustrative scale: 1 sim unit ≈ 3.5 cm, gummy at 1.3 g/cm³. A satoshi counts as loose once it has dropped onto the table.
HKL tools · N nudge · R reset · Space pause · B lens · F frame rate
After the Spider Melon idea by @vib3coded · built with Claude Fable 5.1 and polished with Fable 5.2, on max thinking, more than half a million tokens of back-and-forth · made with ❤ by idlebg.com · all three editions
The slice is a volumetric mesh of — particles and — tetrahedra, solved with XPBD on a fixed 60 Hz step split into 10 substeps. Each tetrahedron is pulled, with finite compliance, toward its best-fit rotated rest shape — a co-rotational elastic constraint that also flips inverted elements back out — and carries a volume constraint that keeps the candy close to incompressible, so a stretched slice necks in like the real thing. The simulation steps sixty times a second; on a faster display, and at quarter speed, what is drawn lies between the last two steps.
Tetrahedra in the rim are roughly three times stiffer than the field. Damping acts only on relative velocity along the mesh edges, so the slice still falls and tumbles freely while its wobble dies away. Ground contact projects particles out of the floor with friction. The table holds a slice that is standing and lets go of one that slides, so a slab pushed at the top sways over its base instead of skating away; as it comes to rest the hold is let down again, and the slab lies flat. The grab is a soft attachment on a patch of particles, bounded in reach. A slice that has come to rest is not stepped at all — what is left in it is a jitter of a few hundred-thousandths of a unit that goes nowhere — until a hand, the knife, a coin or a nudge gives some part of it speed.
Every piece is a convex outline in the slice’s original rest plane, with rounded corners. Your stroke, read on the surface it was drawn over, fixes a vertical blade plane. For each piece it crosses, the piece’s current pose is fitted with a best rotation, the plane is carried back into rest space and becomes a straight line, and the outline is split along it — the two halves are prebuilt as fresh tetrahedral meshes the moment you let go.
Then the steel knife comes down: its edge first presses a groove into the candy, and when it breaks through the new pieces are swapped in, taking over the position and speed of the candy they came from, while the blade wedges the faces apart on its way to the board. The knife is lifted before it strikes, is slowed by the jelly, goes through gathering speed and stops dead on the board; the table passes the blow to everything standing on it. Cut, the two halves are parted by the blade and by nothing else: the cut is as wide as the knife while the knife is in it, and opens as the knife leaves.
The blade is a mirror with a grain. Ground along its length, it draws what it mirrors out across the grind lines: the table under it and, as it comes down, the candy and its gilt rim — found in the two maps the table itself is lit from, the top-down height map and the table’s own mirror image. The bevel is ground the other way and catches the light at an angle of its own; the edge is a bright thread; the spine is rounded over and carries a line. The handle is walnut on a full tang, with three domed rivets. The blade is drawn behind the candy’s surface, so the part that is buried in it is seen refracted. Each piece is its own soft body — grab it, stretch it, cut it again — and pieces push against each other instead of passing through.
Four small gold coins stand in the candy at odd angles, each a rigid mesh — two faces with a recessed field and a raised rim, a reeded edge — posed on the CPU every frame from a centre and a basis; the design is a signed-distance relief in the shader, a ₿ on heads and a 1 on tails, each inside a ring of beads. They are struck like proofs: the field is a mirror, slightly dished, and shows the room — dark where the room is dark — while the design and the beads are frosted and stand on it light. The relief is read at the four edges of each pixel’s footprint, so a stroke seen at a glancing angle stays a stroke, and the reeding is a row of crests and grooves until the reeds are too small to tell apart. Sealed, a coin is carried by the candy round it and is seen through that candy, refracted and tinted. Where the slab is squeezed it tips, as a coin between two fingers would; being gold, it follows a moment late. It shivers when the blade comes near, when its piece is held or the slice is tapped beside it. A cut that passes within reach works it loose: it rattles while the blade is still in, rights itself as it tips into the cut, drops between the two new faces and rolls out along them.
On the table a coin rolls on its edge. Rolling friction bleeds off its speed; its lean grows as it slows, and a leaning coin turns toward the lean (v²/R = g·tan θ), so the path curls into a spiral. Past a certain lean it goes over into the whirl of a spun coin — the point of contact races round faster and faster as it settles, as Euler’s disk does — and lies flat on one face or the other. Rolling coins bounce off the pieces and shove them, keep off each other, and lean back toward the slice when they stray. A settled coin can be slid about under a finger and flicked — it goes up on its edge and rolls again — or tapped, and it is flipped, tumbling end over end, to land heads or tails.
The renderer is three.js on WebGL 2: eleven THREE.Scene passes into render targets, drawn with GLSL ShaderMaterials. They render the table, the knife, the coins and the air bubbles first (an air bubble is a lens turned inside out: clear in the middle, and from seven tenths of its radius outward a ring of total reflection), then the slice’s back faces to measure how much candy each view ray crosses. The front faces refract the scene behind by that thickness — red bent a little less than blue, so the coins inside carry a thread of dispersion — and absorb it with Beer–Lambert colour; the field is clear gummy, so its colour is almost all absorption, with only a little in-body scattering, a back-lit glow at thin edges, Fresnel reflections of a procedural night studio and wet two-lobe GGX highlights from the key behind and a cool fill in front. The studio’s softboxes are not flat cards: the overhead one has a heart that falls away to its rim, and the strip behind lights the sweep above it, so a face mirrors a slope of light rather than an even film.
The coin’s design is not geometry: the ring and the ₿ are regions of the shared rest frame, struck right through the thickness as columns of milky candy, and their edges — like the reeding round the rim and the faint undulation of a poured surface, which lies on the faces and leaves the rounded edges as the mould made them — are a height field whose gradient, taken exactly at each pixel, bumps the normal, so the relief stays put however the slice is cut or pulled — except that a relief hides its own far side: from a low eye the slope that leans away is let go towards the crest, since nobody can see it. The normal it bumps is the one the candy was moulded with — the exact rounding of an edge, straight up on a face — carried along by the deformation around it, so that a highlight runs down an edge as one line and not in beads; and where the struck relief is finer than the pixels it is drawn as what a pixel holds of it: less slope and more roughness, by the footprint of the pixel on the face.
The rim is gilded, a metallic sheen over dense candy, and an upright gilded wall on a lacquered table mirrors the table: its moon pool, its own shadow, and in the lacquer the cool strip on the flank turned to it and the candle on the other; and any surface well inside the slice’s original outline can only be a knife cut, so it is rendered satin and a touch frosted, with the faint drag marks of the blade, where the moulded faces are glossy. What lies inside is blurred by twelve taps on a sunflower spiral, turned by a different angle at every pixel, and the thread of dispersion comes out of the same taps: red and blue are the same blur centred a hair to either side. A coin sealed in the candy was lit through the candy too, so its light is absorbed on the way in as well as on the way out, and it lies in the colour of what surrounds it.
The table is lacquered: everything that stands on it is drawn a second time upside down beneath it — the coins and the knife with their own shaders, lit as the eye itself sees them wherever it sees them directly, so that an image is never brighter than its object; the candy as a cheap stand-in that shows on its surface what the candy itself shows the eye — and read back at the same pixel, sharp at the foot of things and spreading the higher they stand, stronger to a glancing eye. The spreading is the image’s own mip chain — a coarser level the higher a thing stands — so it has no grain, and what is held well clear of the table, like the knife waiting over the slice, leaves no image.
The table also gets a soft key shadow, and the shadow is a real one: where a thing stands in the key’s way the table loses the key, and only what the candy lets through comes back — the clear part of the ray’s path through it, in the candy’s colour, gathered by the slow undulation of the poured top face into soft bands of light with darker gaps between them (the bands are paid for by the gaps: nothing is added; under Obsidian, which lets little through, they take the ember of its ₿). The rim and the coins let nothing through, the milky ring and the ₿ half — so under clear candy the table is a little darker beneath the ₿: a soft patch, not a second sign, because what the lacquer mirrors there is seen through the whole body of the candy and is blurred as much as that blurs it. A wash of the candy’s own colour from a blurred top-down footprint and contact occlusion from a height map, with a tight dark seam where a thing touches the table, complete it; loose coins take the candy’s colour on the side that faces it.
The Light tool moves the key itself — the lamp is held over the spot under your pointer, straight down above the slice and raking low far out — and the shadows, the caustics and the glow at the candy’s edges go with it; when the candy wobbles, the bands of gathered light stir.
The picture is taken through a lens, about what a 50 mm at f/11 would give a subject this small this close: at the focus distance everything is sharp, and away from it each point spreads into a disc that grows with its distance from the focus, gathered at half size on a spiral of taps. Focus follows your pointer when it rests on a piece or a coin, and otherwise sits on the slice, a little nearer than its middle. Once the slice is cut and coins lie about, the lens is set to the middle of everything and its sharp band opens until it holds the heart of every piece and every loose coin, the way a photographer stops down for a group; a coin that rolls far off is let go soft. The bright end of the frame is blurred at quarter size and laid back over it, and three.js finishes with its Khronos PBR Neutral tone mapping.
The Lightning mint also gives off its own light: the glow adds up along the path through the candy and is absorbed like any other light on its way out, so the heart is a deeper violet than the edges and the coins and the ₿ inside cut dark shapes into it; a slab of it is a light pipe, so its upright faces (a side wall, a knife cut) are brighter than its top; slow veins of noise drift through it in rest space, and the table picks up a violet pool from a blurred top-down footprint of the slice. A change of mint is not a jump: for a third of a second the renderer is handed a blend of the two mints’ colours, so the glow fades in.
Most of a frame used to go on the table, which asked a hundred questions of its maps at every pixel whether or not anything stood near. The light’s depth map, the top-down height map and the mirror image are now mip-mapped and keep zero for “nothing here”, so one read of a coarse level answers for a whole neighbourhood, and where the answer is no the shadow search, the occlusion, the glow and the mirror’s blur are skipped; occlusion and glow themselves are three reads of that map’s coarse levels, fitted to what fifty-six taps used to give. The shadow’s penumbra and the mirror’s blur are read from coarse levels too: the light’s map keeps “something is here” beside its depth, and a coarse level of that is a penumbra already averaged — nine reads where there were thirty-three, and no grain. The body is re-skinned only when the simulation has stepped. If the frame rate still sags the picture gives up resolution rather than smoothness, a step at a time, and takes it back when there is room — F shows the frame rate, the GPU’s own time per frame where the browser tells, and the size being drawn. On a phone the stage stays at the top of the screen while the controls are scrolled to, and gives the screen back when these notes are opened.
Starting is quick as well. The page is painted before anything is built; then the sixteen shader programs are handed to the browser all at once, to be compiled side by side on its other threads while the slice, the coins and the knife are meshed on this one. Asked for one at a time, the way a first frame asks, they queue up behind each other — on Direct3D that was 1.9 s of a frozen page, where this way takes 0.7 with the page alive.
Hard Fork began as Spider Melon — a gummy watermelon slice with gummy spiders set in it — an idea from @vib3coded. This bitcoin edition — the coin slice, the satoshis that work loose and roll away, and the passes of polish and tuning since — was written with Claude Fable 5.1 and polished and tuned with Fable 5.2, both on max thinking, in more than half a million tokens of back-and-forth, and is made with ❤ by idlebg.com. The parts of three.js r170 it needs (MIT) are bundled into this file, so the page stands alone.