Spun Silk guide
Overview
Spun Silk turns your picture into walls and lets tens of thousands of fine threads loose inside them. The threads never see your picture; they only bump into its walls, and their paths, added up, draw it.
Each thread is a walker: a point that moves at one speed. A slow swirling current, curl noise, turns it, and a little chance turns it more, so its path is a random walk that flows.
Your picture becomes a wall mask: in Shape, the bright part (or the drawn part of a transparent picture) is the room, with an automatic threshold to start; in Edges, its strong edges become thin edge walls. An exact distance transform gives every point its distance to the nearest wall, a signed distance field.
Near a wall a thread is turned along it by the distance gradient, tangent steering, and kept beside it by wall sliding. Many threads travel that narrow band, so every wall gathers a bright ribbon.
Every step leaves a faint line; the lines are added up, trail accumulation, into a density map, then shown through an exponential tone curve over a two-colour ramp. Nothing else is drawn.
In 3D the walls rise into an extruded slab; each thread keeps its last points in a trail ring, and a depth cue keeps front and back apart as the turning camera goes round.
In this guide
- StartWhat you need and your first piece in five steps.
- Every controlEvery control in the panel, one line each.
- Three looksThree pieces and the settings that made them.
- Keep your workThe PNG, and what it holds.
- KeysEvery shortcut, and what each one does.
- HelpWhat to do when something looks wrong.
It opens on a default room, a rounded square with three pillars, and starts spinning by itself.
An SVG works as well as a photo; a picture with transparency uses its drawn part as the room.
It needs a browser with WebGL2: any recent Chrome, Edge, Firefox or Safari.
Threads that grow from a slime mould's trail are Physarum trails; lines that follow the height of a picture are Topographic flow.