Learn to write MilkDrop presets
Open Stims — no install needed
A curriculum for going from "never seen a preset" to publishing your own — using Stims itself as the lab. Every example is a complete preset behind a ▶ Run link: it opens toil.fyi with the code loaded in the live editor, so the lessons need nothing installed. The exception is the measuring step in Track 3, Lesson 5, which runs from a clone of the repository.
If you want the reference instead of the course, see the language reference and the pattern language in MILKDROP_CODING_GUIDE.md.
The path
| Track | What you learn |
|---|---|
| 0 · Play | Remix an existing preset and share it — no code |
| 1 · How MilkDrop thinks | The feedback loop, the pipeline, decay, time |
| 2 · Motion | zoom, rot, dx/dy, sx/sy, warp — and a line-by-line dissection of a Geiss classic |
| 3 · Listening | Audio bands, smoothing, beat detection, measured reactivity |
| 4 · Warp fields | Per-pixel equations: rad, ang, tunnels, and ripples |
| 5 · Waves and shapes | Custom waves, custom shapes, the q-var bridge |
| 6 · Shaders | Warp and composite shaders, the pair most catalog presets carry |
| 7 · Taste | Five masterwork dissections: reaction-diffusion, tempo tracking, hand-rolled HSL, and more |
| 8 · Shipping | Implemented paths, compatibility limits, performance, publishing |
| 9 · Technique glossary | The named-technique vocabulary — Jelly, Relief, Painterly, Krash's beat code — counted across the shipped catalog |
All ten tracks are live. Follow-on work is in the roadmap's Learn by editing section; the plan that scoped the tracks is archived.
How the examples work
Example sources live in examples/ as ordinary .milk files you can also import directly. Each ▶ Run link encodes the full file into a #code= payload. Use Share or Copy link for your own experiments, and export a .milk file when source exceeds the URL size limit.
bun run check:authoring-examples compiles every example and verifies that every run link matches its source file (--write on the underlying script regenerates them). CI treats a broken example like a broken build.
Conventions
- Lessons show the one or two lines that changed; the linked file is always the complete preset.
- Anything Stims-specific (rather than MilkDrop-standard) is flagged as such where it appears.
- Techniques are credited to the authors who invented them. MilkDrop's culture is remix culture; the docs follow it.