Reaction Diffusion

Read with AI
All docs in one file (llms-full.txt)
ReactionDiffusion #Generator #Node
Reaction Diffusion

A reaction-diffusion simulation based on the Gray-Scott model. It holds two 512×512 state buffers internally and keeps feeding the previous frame back in via ping-pong (feedback). The combination of Feed and Kill changes the family of patterns: spots, mazes, mitosis.

  • Feed — Default 0.055. The slider on the node runs 0.01-0.09
  • Kill — Default 0.062. The slider on the node runs 0.04-0.07
  • Iterations/frame — Number of simulation iterations per frame. Default 8, and the slider runs 0-30, but the value is actually rounded and clamped to 0-40. Setting it to 0 stops time
  • Reseed — Re-seeds the state buffers with a random seed (same as the Reseed button on the node)

The output is a RenderTexture at the global resolution, with a three-color gradient applied to the simulation result.

The diffusion coefficients (DA=1.0 / DB=0.5), the time step (Dt=1.0), and the three colors used for coloring are fixed and cannot be changed from the node.

Input ports

Port IDType
Feedfloat
Killfloat
Iterations/framefloat
Reseedtrigger

Output ports

Port IDType
Render TextureRenderTexture

Scriptable members

PathType
feedInputfloat
killInputfloat
speedInputfloat
feedfloat
killfloat
speedfloat

Synapse Apps (scripting)

await synapse.modules.create({ type: "ReactionDiffusion" })