ReactionDiffusion
Import from @pibbl/core/textures. Defaults: seed=42, preset="spots",
resolution={width:256,height:160}, lagoon palette, running, and a radius-6,
strength-0.8 brush. preset also accepts stripes.
The brush plants viable patches rather than a uniform chemical flood. Larger brushes plant clusters; established ink is left intact. Very small or weak marks may still dissipate as the field evolves.
paused stops evolution but permits painting. brush={false} disables painting.
A changed resetRevision, seed, preset, or simulation resolution resets the field.
Palette and display-size changes preserve it. Configurations are compared by value.
Use explicit signal reads in custom props.
style and event/focus props follow defineRenderLayer. Use pointerEvents="none"
for a decorative background. render optionally customizes how the generated
source/mask is drawn. Pointer painting continues to use the default stretched
rectangle mapping. The simulation persists across component evaluations and is
released on removal.
See the texture guide and Living Ink.
Options: ReactionDiffusionProps, TextureBrush, TextureRenderer.
API details from source
Section titled “API details from source”
An independently sized, persistent Gray–Scott surface, advanced by Pibbl’s scheduler.
ReactionDiffusion: PibblComponent<ReactionDiffusionProps & PibblRenderLayerComponentProps>Related API: ReactionDiffusion, PibblComponent, ReactionDiffusionProps, PibblRenderLayerComponentProps.
Parameters
Section titled “Parameters”props— Authored component inputs, supplied through JSX or createElement. See the linked props and style types.
Throws
Section titled “Throws”When called directly; Pibbl mounts this component through JSX or createElement.
See also
Section titled “See also”View source — packages/core/src/features/textures/lib/reaction-diffusion.ts:221
Implementation guidance for agents
Section titled “Implementation guidance for agents”Read the Textures and reaction-diffusion companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.
Complete minimal examples
Section titled “Complete minimal examples”- Paint reaction diffusion: Mount an interactive reaction-diffusion layer with a typed brush. Plain source
Interactive examples
Section titled “Interactive examples”Documentation version
Section titled “Documentation version”Documentation built with @pibbl/core 0.0.2, revision 380919b. ALPHA — NOT FOR PRODUCTION USE.