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 ID | Type |
|---|---|
Feed | float |
Kill | float |
Iterations/frame | float |
Reseed | trigger |
Output ports
| Port ID | Type |
|---|---|
Render Texture | RenderTexture |
Scriptable members
| Path | Type |
|---|---|
feedInput | float |
killInput | float |
speedInput | float |
feed | float |
kill | float |
speed | float |
Synapse Apps (scripting)
await synapse.modules.create({ type: "ReactionDiffusion" })