Skip to content

ReactionDiffusion

Read as Markdown

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.

An independently sized, persistent Gray–Scott surface, advanced by Pibbl’s scheduler.

ReactionDiffusion: PibblComponent<ReactionDiffusionProps & PibblRenderLayerComponentProps>

Related API: ReactionDiffusion, PibblComponent, ReactionDiffusionProps, PibblRenderLayerComponentProps.

  • props — Authored component inputs, supplied through JSX or createElement. See the linked props and style types.

When called directly; Pibbl mounts this component through JSX or createElement.

ReactionDiffusionProps

View source — packages/core/src/features/textures/lib/reaction-diffusion.ts:221

Read the Textures and reaction-diffusion companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.

Documentation built with @pibbl/core 0.0.2, revision 380919b. ALPHA — NOT FOR PRODUCTION USE.