How the Turing Patterns Sketch Grows Living Texture
The Turing Patterns sketch runs on a reaction-diffusion system where most of the visible complexity comes from one compact loop repeated at pixel scale. Each pixel tracks two concentrations, A and B, and each frame applies the same sequence in the same order, first diffusing those values across nearby cells and then updating them with the Gray-Scott reaction terms. Since every cell follows identical local rules while feeding back into its neighbors, the field gradually organizes into stable edges, spots, and branching structures that read as organic even though no shape is drawn directly.
1) Every pixel carries two values
Each pixel stores two scalar values. Most cells start with A near 1 and B near 0, while a small seeded region receives extra B so the system has an initial instability to amplify.
// per cell state
A[x,y] = 1.0;
B[x,y] = seed ? 1.0 : 0.0;
2) Diffusion is neighborhood averaging
Each frame, A and B spread through a Laplacian stencil that approximates local diffusion on the grid. The center weight is negative and neighbor weights are positive, so the update captures local curvature and smooths sharp concentration differences over time.
3) Reaction is a nonlinear swap
The Gray-Scott update couples both chemicals through one compact nonlinear term, A * B * B. Where B is already present, it consumes A and reinforces B, while the feed and kill rates keep the dynamics inside a useful regime instead of collapsing toward a trivial uniform state.
dA = Da*lapA - A*B*B + f*(1 - A)
dB = Db*lapB + A*B*B - (k + f)*B
In practice, the parameters matter as much as the equations. Small changes to f, k, Da, and Db can shift behavior from smooth decay to persistent stripes, spots, and mixed transitional structures.
4) Why the patterns feel alive
No pixel has access to the global shape. Each one reads nearby values and applies the same rules as every other pixel. Repeated local updates still produce stable fronts, branching fingers, and spot-to-stripe transitions. It is the same emergence principle seen in Life and Boids, but expressed with continuous concentrations instead of binary states.
5) Rendering maps chemistry to tone
The sketch usually maps tone from A - B or directly from B concentration, which turns concentration gradients into visible structure. High-B zones become ridges or veins depending on the palette, and small parameter shifts can move the output from banded fields to cellular foam without changing the underlying algorithm.
That is the core appeal. A short local update loop runs quickly enough to let structure accumulate, and after enough iterations the image carries the visual logic of biological texture.
Links. Visualization · Gallery Index · Home
← Back to main page