stepsPerColor parameter lets you posterize the gradient into discrete bands. A softness control adjusts how sharply each band transitions to the next.
Usage
- React
- Vanilla JS
Props
Array of CSS color strings cycled through the noise field. Accepts up to 10 colors.
Number of discrete steps (bands) interpolated between each adjacent pair of colors.
1 gives one band per color; higher values posterize the gradient into more bands. Range 1 to 10.Sharpness of the transition between color bands.
0 gives a hard edge; 1 gives a smooth gradient. Range 0 to 1.Animation speed multiplier. Set to
0 to pause.Starting animation frame in milliseconds.
Presets
| Name | Description |
|---|---|
defaultPreset | Five-color retro palette with 2 steps per color and hard edges. |
spotsPreset | Three-color warm palette showing the noise as distinct blobs. |
firstContactPreset | Five-color dark moody palette at a very small scale. |
bubblegumPreset | Four-color pastel palette with smooth softness and fast animation. |
@paper-design/shaders-react:
Sizing props
Simplex Noise uses pattern sizing by default (fit: 'none'). It also accepts all ShaderSizingParams (fit, scale, rotation, offsetX, offsetY, originX, originY, worldWidth, worldHeight). See Sizing and fit for details.