Advanced workspace · generative art

Reaction-Diffusion Painter

Full workspace

Grow living patterns like coral, fingerprints, mazes and leopard spots from two simulated chemicals, then paint into them while they grow. Pick a recipe or tune the feed and kill rates, explore the whole parameter map, seed with text or your own image, and export seamless tiles, wallpapers, height maps, line-art SVG or a video of the pattern growing.

  • Gray-Scott model
  • 10 recipes
  • Paint and erase live
  • Seed with text or an image
  • Parameter map explorer
  • Seamless tiles
  • SVG · GIF · MP4 · WebM
Live pattern–
Steps
–
Feed F
–
Kill k
–
Covered
–

Export

Pictures use the pattern as it is now. The pattern wraps around, so tiles repeat with no seams. The GIF and videos keep the simulation running from this moment.

Keyboard shortcuts

Using Reaction-Diffusion Painter

Grow living patterns from two simulated chemicals and paint into them as they grow.

  1. The painter opens on a coral pattern that keeps growing. Drag on the canvas with Grow to paint new chemical, or pick Erase to wipe parts away.
  2. Pick a recipe at the top or in the Recipe tab: coral, cell division, maze, worms, spots, holes, fingerprint, pulsing waves, chaos and moving spots. Each is a pair of feed and kill rates.
  3. Move the Feed and Kill sliders to make your own. Small changes give very different patterns, and some settings die out.
  4. Explore the parameter map to run every recipe at once across the canvas, then click a region you like to use its feed and kill.
  5. In the Seed tab, start again from spots, a square, a line or a ring, or grow the pattern out of your own text or picture.
  6. Change the colours, contrast and smoothing in the Look tab; the 3 × 3 preview shows that the pattern tiles with no seams.
  7. Export a picture, a seamless tile, a wallpaper, a height map for 3D, line art as SVG, or a GIF, MP4 or WebM of the pattern growing.

Example

Pick Cell division, then paint a few dots with Grow: each dot swells into a blob, splits in two and keeps splitting until the space is full, like cells dividing.

Questions & answers

What is reaction-diffusion?

Two chemicals spread out at different speeds and react with each other. Chemical V uses up U to make more of itself, U is fed in everywhere and V is removed. That simple rule, worked out on every cell many times a second, forms stable spots and stripes, an idea Alan Turing proposed for animal markings.

What do feed and kill do?

Feed (F) is how fast fresh U flows in; kill (k) is how fast V is taken away. Different pairs give spots, stripes, mazes, waves or nothing at all, which is why the parameter map is worth exploring.

Why does my pattern disappear?

Some feed and kill values cannot sustain V, so it fades away. Pick a recipe, reseed, or move the sliders back towards a region that lived on the parameter map.

Are the tiles really seamless?

Yes. The grid wraps around, so the right edge touches the left and the top touches the bottom. The pattern grows across the edges and the tile repeats with no visible join.

Why is it slower at 384 cells?

Every step updates every cell, so four times the cells means four times the work. Lower the speed or use a smaller grid on slower devices.

Can I use the exports in my own work?

Yes, the patterns are yours. The height map works as a displacement or bump map in 3D apps, and the SVG line art can be cut or plotted.

Help improve this tool

Report a problem or suggest an improvement

Describe the issue without pasting private tool input. Feedback goes to our admin inbox.

Find another tool · Read practical guides