reactDiffuse

Gray-Scott reaction-diffusion on .x and .y.

reactDiffuse(config: {feed: OpArg; kill: OpArg; speed?: OpArg}): ReactDiffuseOp

Import op from shaders/std and use op.reactDiffuse.

Seed .y with init. Classic settings: spots feed 0.035, kill 0.065; mazes 0.029, 0.057; coral 0.0545, 0.062.

Parameters

NameTypeNotes
config{feed: OpArg; kill: OpArg; speed?: OpArg}

Example

op.reactDiffuse({feed: 0.055, kill: 0.062})