Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Turing patterns

Grow Turing patterns with the Gray-Scott reaction-diffusion model: spots, stripes, mazes and dividing cells from a few drops.

Steps: 0

How to use

  1. Pick a pattern and press Run. The drops of chemical V grow and spread into spots, stripes or mazes.
  2. Click or drag on the picture to drop in more V while it runs.
  3. Change Feed F and Kill k by small steps (0.001 makes a big difference) to find new patterns. Pause to count the separate patches.
  4. Save a picture you like as a PNG.

Keyboard and touch

Click, tap or drag on the pictureAdd drops of chemical V
Tab to F or k, then Up / DownNudge the feed and kill rates

Tips

  • Spots that split look like cells dividing; wait until they fill the whole picture.
  • Between the spot and maze patterns there is a thin band where both mix. Try F = 0.035 with k = 0.06.
  • If everything fades away, V was removed faster than it could grow: lower k or raise F a little and start again.

About this tool

In 1952 Alan Turing showed that two chemicals that react and spread at different speeds can turn an even mixture into a pattern. This page runs the Gray-Scott model, a well-studied example: U is fed in at rate F, two V molecules turn a U into V (U + 2V → 3V), V is removed at rate F + k, and U spreads twice as fast as V. Each step every grid square is updated from its neighbours with a 3 × 3 averaging stencil (sides 0.2, corners 0.05) on a 160 × 160 grid that wraps round at the edges. The named patterns use well-known F and k values from the reaction-diffusion literature. Whether real leopard spots form exactly this way is still studied; the patterns here show the idea, not a model of any animal. The tests check one step against an independent Python calculation, that an even mixture stays even, and that spots and mazes appear.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product