Four satoshis, set in a gummy bitcoin.
Cut close to one and it rolls away.
Not your knife, not your coins.
HandGrab any piece — tip, corner, field or rim — and pull.
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.
Keys: H K L tools · C mint · M mesh · D demo · S sound · N nudge · R reset · Space pause · B lens · P showcase · F frame rate
After the Spider Melon idea by @vib3coded · built with Claude Fable 5.1 & 5.2 and polished by Google Argon · 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. Toggle Mesh (M) to view a live Cauchy–Green strain and kinetic energy heatmap directly across every tetrahedral edge.
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 Coulomb-style friction; the grab is a soft attachment on a patch of particles, bounded in reach, with elastic snap-back recoil on deep release. A piece 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, a nudge or another piece gives some part of it speed; pieces that lie still and apart are left alone while another is in a hand. What cannot have changed is not drawn again either: the lamp's shadow map and the map the table's glow is read from wait until the candy, a coin or the lamp moves.
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 folded Damascus steel nakiri knife — complete with acid-etched suminagashi wave grain and honed hamon edge — 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 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, and anisotropic radial cartwheel mint lustre — 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. Sealed, a coin rides the best-fit rotation and centre of its piece and is seen through the candy, refracted and tinted; 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 (launching an impact capillary ripple across the candy), 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.
Tapping, grabbing, releasing a stretch, colliding a coin or nudging the specimen launches a damped capillary ripple across the touched piece, with wave speed governed by firmness and attenuation by internal damping — disturbing the studio reflections, the refracted interior and the chromatic caustic filaments on the table below. Pulling a corner stretches the surface area relative to its mould and induces elastic strain opalescence, while a fresh knife cut briefly catches a wet, glossy highlight along the seam before relaxing into the satin drag marks and crystalline sugar micro-facets of the blade. The Clarity control tunes Beer–Lambert absorption, subsurface scattering and prismatic caustic concentration from cloudy pâte de fruit to crystal-clear optical gel, while Demo (D) runs a choreographed tour and Sound (S) enables procedural Web Audio tactile synthesis.
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, 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 — sampled across a nine-tap golden-angle Vogel spiral rotated per pixel by interleaved gradient noise, with three-channel Cauchy chromatic dispersion (red bent a little less than blue) so the coins inside carry a prismatic rim — 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 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. 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, the studio is mirrored in it a little rougher, by the spread of its slope across the pixel, instead of in dashes. The rim is gilded, a metallic sheen over dense candy; 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. 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 seen from a mirrored eye, the candy as a cheap stand-in — and read back at the same pixel, sharp at the foot of things and spreading the higher they stand, stronger to a glancing eye. It also gets a soft key shadow tinted by the candy, caustics — a network of bright filaments, the light the candy has gathered, thrown into that shadow in the candy’s colour (under Obsidian, which lets little through, in the ember of its ₿; under Argon, in ionized cyan) — a wash of the candy’s own colour from a blurred top-down footprint, and contact occlusion from a height map; 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 filaments of the caustics 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. 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 Argon and Lightning mints also give off their own internal bioluminescence: each refracted tap integrates emission over its own path through the candy, so the coins and the ₿ inside cut dark shapes into the glow while slow veins of plasma drift through rest space.
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 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.
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 originally built with Claude Fable 5.1 and 5.2, and is now polished and enhanced by Google Argon (adding the Argon & Morello mints, 9-tap Vogel-spiral chromatic dispersion, piece-local capillary ripples coupled to table caustics, strain opalescence, freshly-cut wet seam relaxation, clarity optics and Showcase mode). Made with ❤ by idlebg.com. The parts of three.js r170 it needs (MIT) are bundled into this file, so the page stands alone.