Build a paper marbling effect background for a bookbinder, using real marbling maths in a WebGL shader. Keep up to 16 operations in uniform arrays. An ink drop of radius R at centre C pushes everything outward, so a pixel outside it maps back to C plus its offset scaled to the square root of distance squared minus R squared, and pixels inside take the drop colour with a 1px antialiased edge. A comb stroke displaces points along its direction by z times 2 to the power of minus distance over lambda. Walk the list newest first per pixel, then sample a base texture; when it fills, bake into a second texture, swap and clear. Inks: indigo #23345c, saffron #e3a33b, oxblood #8e2f2f, sage #7f9a7a, near black #1b1a1f and cream #f3ead8. Start with a bath packed with drops, combed back and forth every 58px. Dragging combs the ink every 16px of travel, a click or tap drops a new ink that grows over 900ms, and when idle drops land and wavy strokes cross on their own. Centre the copy on a cream bookplate (#f8f1e2) with a double indigo rule: an oxblood label "Gall and Vellum, bound in Bath", a 60px serif headline "Notebooks with a little weather inside", one line and two square buttons. Redraw only on change and skip idle drops for reduced motion.
Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.
About this marbling effect
Real paper marbling has rules, and this marbling effect follows the craft step by step. Ink drops land on the bath and push the earlier colours outward, then a comb is dragged through to pull them into feathers and hearts, just as a marbler works on carrageen. Drag the cursor and you comb the ink yourself, every stroke pulling the pattern along. Click and a fresh drop of indigo, saffron, oxblood or sage lands and spreads, shoving the design aside.
The maths is exact. A drop moves every point away from its centre so the total area stays the same, and a comb shifts points along its direction by an amount that falls away with distance. The shader runs those steps backwards for each pixel to find which colour ended up there. When sixteen steps pile up, the picture is baked into a texture and the list starts again, so you can marble forever.
Why the prompt works
- It gives both marbling formulas, drop and comb.
- It explains the backward walk, newest step first.
- It solves the growing list with a ping pong bake.
- It sets the copy on a bookplate, so busy ink never hurts reading.
Where to use it
Bookbinders, stationers, publishers, wallpaper and textile brands, and craft workshops.