Static Radial Gradient renders a radial gradient from a focal point outward through up to 10 colors. The focal point can be offset from the center of the shape, creating conic-like gradients. A distortion parameter adds radial petal or ripple patterns along the gradient boundary, and grain controls add noise texture on top.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/paper-design/shaders/llms.txt
Use this file to discover all available pages before exploring further.
Usage
- React
- Vanilla JS
Props
Background color shown outside the gradient shape. Accepts any CSS color string.
Array of CSS color strings blended from the focal point outward. Accepts up to 10 colors.
Size of the gradient shape. Range
0 to 3.Distance of the focal point from the center of the shape. A value of
0 places the focal point at the center (standard radial gradient). Range 0 to 3.Angle of the focal point in degrees. Only effective when
focalDistance is greater than 0. Range 0 to 360.Controls the gradient decay curve.
0 produces a linear gradient. Positive values accelerate the falloff; negative values slow it. Range -1 to 1.Blending behavior between colors.
0 produces hard stripes, 1 produces a smooth gradient. Range 0 to 1.Strength of radial boundary distortion. Creates petal or ripple patterns along color edges. Range
0 to 1.Radial offset of the distortion effect. Only effective when
distortion is greater than 0. Range -1 to 1.Frequency (number of petals or ripple peaks) of the distortion. Only effective when
distortion is greater than 0. Range 0 to 20.Strength of grain distortion applied to color edges. Range
0 to 1.Post-processing black/white film grain overlay blended on top of the final color. Range
0 to 1.Animation speed multiplier. The default is
0 (static).Starting animation frame in milliseconds.
Presets
| Name | Description |
|---|---|
defaultPreset | Cyan-to-white on black with an offset focal point giving a cone-like shape. |
loFiPreset | Three warm colors on dark purple with heavy grain for a lo-fi aesthetic. |
crossSectionPreset | Four-color radial with maximum distortion creating a cross-section look. |
radialPreset | Smooth sunset radial gradient from center with no distortion. |
@paper-design/shaders-react:
Sizing props
Static Radial Gradient also accepts allShaderSizingParams (fit, scale, rotation, offsetX, offsetY, originX, originY, worldWidth, worldHeight). See Sizing and fit for details.