Load three.js first
The script reads window.THREE. Load three before code.js (the Vault uses the r160 UMD build from jsDelivr). Without it the section shows its heading and no trail.
Add links freely
Links and buttons inside .dth_content work as normal. The script listens on the section, so the trail keeps following the pointer over them.
Pick the dot size for the mood
data-au-dot is the size of one dither cell in CSS pixels. 2 is fine and filmic; 3–4 reads as deliberate pixel art. The canvas runs at one pixel per CSS pixel, so dots stay sharp on any screen.
Shape the tail with radius, tail and lag
data-au-radius sets how wide the head is (a share of the section's height). data-au-tail caps how long the trail can get in head radii. data-au-lag sets how lazily the chain follows: 0.5 feels quick and tight, 0.85 sweeps behind like a ribbon.
Retheme with variables
--dth-trail colours the dots (read once at init, so call refresh() after changing it from script). --dth-bg, --dth-fg and --dth-muted set the page, heading and eyebrow.