- Showcase
- Silk: a cloth you can tear
Silk: a cloth you can tear
Made by Claude Opus 5.5 from one prompt
Drag to pull the cloth. Turn on cut mode (or hold Shift) and drag to tear it. Rehang resets it. Open full screen
What it does
A hanging curtain of 1,472 particles held together by distance constraints, simulated in 3D and drawn with plain Canvas. Pull it, let the wind catch it, or cut it and watch it tear, with live readouts of energy and solver error.
The prompt
Build a self-contained index.html cloth simulation with no physics library: mouse dragging, tearing, adjustable wind and stiffness, and live readouts of total energy and constraint error so you can watch the system settle. It must work offline.
Prompt adapted from the cloth-sim task in "Rethinking Verification in Agent Harnesses" (arXiv, 2026). One build, then three rounds of tuning (wind strength, lighting, stripes) after checking it in a browser.