Search documentation

Find a vivid-layer page or product.

Static Radial Gradient

A layered radial gradient with focal, distortion, and grain controls.

pnpm dlx shadcn@latest add @vivid-layer/static-radial-gradient

Customize

Radius
0.8
Focal Distance
0.99
Focal Angle
0
Falloff
0.24
Mixing
0.5
Distortion
0
Distortion Shift
0
Distortion Freq
12
Grain Mixer
0
Grain Overlay
0
Offset X
0
Offset Y
0

API reference

The wrapper adds playback and runtime safeguards while preserving the complete Paper StaticRadialGradient API. This includes speed, frame, focal and distortion controls, sizing controls, pixel-ratio controls, styles, and every upstream prop. See the Paper Static Radial Gradient reference for the full prop table and accepted ranges.

PropTypeDefaultDescription
playback"auto" | "always" | "paused""auto"Controls motion policy when a non-zero Paper speed is used. Auto pauses for reduced motion and while the shader is outside the viewport.
colorsstring[]["#00bbff", "#00ffe1", "#ffffff"]Supplies up to ten gradient colors. The wrapper provides a cool blue curated palette when omitted.
colorBackstring"#000000"Sets the background color.
width / heightnumber | string"100%"Sets the canvas CSS dimensions. Size the parent element to establish the visible area.
maxPixelCountnumber2073600Caps the rendered pixel budget. Override only after measuring the target devices.

Credits

The rendering engine is Paper Shaders, distributed under the Apache License 2.0. vivid-layer supplies the React adapter, documentation, and Registry packaging; it does not vendor or modify Paper's shader source.