ReactionDiffusion
A living Gray-Scott reaction-diffusion pattern that fills the layer and blooms wherever you drag the cursor
Props
Prop
Details
preset"coral" | "mitosis" | "spots" | "maze" | "worms" | "fingerprints" | "holes" | "solitons" | "bubbles" | "waves" | "flowers" | "custom"Default:
coralNamed Gray-Scott regime — drives the feed & kill rates for a whole family of patterns. Choose Custom to dial feed & kill by hand
preset"coral" | "mitosis" | "spots" | "maze" | "worms" | "fingerprints" | "holes" | "solitons" | "bubbles" | "waves" | "flowers" | "custom"Default: coralNamed Gray-Scott regime — drives the feed & kill rates for a whole family of patterns. Choose Custom to dial feed & kill by hand
feednumberDefault:
0.0545Feed rate — how fast chemical U is replenished (used when Pattern = Custom)
feednumberDefault: 0.0545Feed rate — how fast chemical U is replenished (used when Pattern = Custom)
killnumberDefault:
0.062Kill rate — how fast chemical V is removed (used when Pattern = Custom)
killnumberDefault: 0.062Kill rate — how fast chemical V is removed (used when Pattern = Custom)
diffusionRationumberDefault:
0.5Ratio of the two chemicals' diffusion rates — shifts the pattern character (lower = tighter, more filament-like)
diffusionRationumberDefault: 0.5Ratio of the two chemicals' diffusion rates — shifts the pattern character (lower = tighter, more filament-like)
featureSizenumberDefault:
3Size of the pattern features — lower shows finer, smaller cells; higher magnifies them into larger cells
featureSizenumberDefault: 3Size of the pattern features — lower shows finer, smaller cells; higher magnifies them into larger cells
speednumberDefault:
6Simulation steps per frame — higher evolves the pattern faster
speednumberDefault: 6Simulation steps per frame — higher evolves the pattern faster
brushSizenumberDefault:
0.04Radius of the cursor brush that seeds new reagent as you drag
brushSizenumberDefault: 0.04Radius of the cursor brush that seeds new reagent as you drag
brushStrengthnumberDefault:
0.6How much reagent the cursor injects while dragging
brushStrengthnumberDefault: 0.6How much reagent the cursor injects while dragging
colorAstringDefault:
transparentBackground color (empty regions between cells)
colorAstringDefault: transparentBackground color (empty regions between cells)
colorCstringDefault:
#38bdf8Accent color at the cell walls (mid pattern values)
colorCstringDefault: #38bdf8Accent color at the cell walls (mid pattern values)
colorBstringDefault:
#e2f5ffColor of the dense cell interiors (high pattern values)
colorBstringDefault: #e2f5ffColor of the dense cell interiors (high pattern values)
contrastnumberDefault:
0.5Sharpness of the cell walls — higher gives crisper, more graphic edges
contrastnumberDefault: 0.5Sharpness of the cell walls — higher gives crisper, more graphic edges
thresholdnumberDefault:
0.28Pattern level the colors are centered on — shifts the balance of background vs. cells
thresholdnumberDefault: 0.28Pattern level the colors are centered on — shifts the balance of background vs. cells
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
oklchColor space for color interpolation
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: oklchColor space for color interpolation
reliefnumberDefault:
0.4Treats the pattern as a raised surface and shades it with a light — higher gives a more sculpted, three-dimensional look (0 for a flat, graphic look)
reliefnumberDefault: 0.4Treats the pattern as a raised surface and shades it with a light — higher gives a more sculpted, three-dimensional look (0 for a flat, graphic look)
lightAnglenumberDefault:
135Direction the surface light comes from, in degrees
lightAnglenumberDefault: 135Direction the surface light comes from, in degrees
childInfluencenumberDefault:
0.6When a child layer is nested, how strongly its brightness biases the pattern — the preset sets the character, the child steers where it grows dense vs. sparse (0 ignores the child)
childInfluencenumberDefault: 0.6When a child layer is nested, how strongly its brightness biases the pattern — the preset sets the character, the child steers where it grows dense vs. sparse (0 ignores the child)
childContrastnumberDefault:
0.5Contrast applied to the child's brightness before it drives the pattern — higher pushes toward a crisp two-tone split (edges), lower keeps smooth tonal shading
childContrastnumberDefault: 0.5Contrast applied to the child's brightness before it drives the pattern — higher pushes toward a crisp two-tone split (edges), lower keeps smooth tonal shading
childThresholdnumberDefault:
0.5Brightness level of the child that reads as neutral — shifts which tones grow the pattern vs. clear it
childThresholdnumberDefault: 0.5Brightness level of the child that reads as neutral — shifts which tones grow the pattern vs. clear it
childInvertbooleanDefault:
falseFlip which tones of the child grow the pattern (bright vs. dark areas)
childInvertbooleanDefault: falseFlip which tones of the child grow the pattern (bright vs. dark areas)