Search documentation

Find a vivid-layer page or product.

Color Panels

Pseudo-3D translucent panels rotating around a central axis.

pnpm dlx shadcn@latest add @vivid-layer/color-panels

Customize

Density
3
Angle1
0
Angle2
0
Length
1.1
Blur
0
Fade In
1
Fade Out
0.3
Gradient
0
Speed
0.5
Scale
0.8
Rotation
0
Offset X
0
Offset Y
0

API reference

The wrapper adds playback and runtime safeguards while preserving the complete Paper ColorPanels API. This includes its panel geometry, colors, motion, sizing, pixel-ratio, and styling props. See the Paper Color Panels reference for the full prop table and accepted ranges.

PropTypeDefaultDescription
playback"auto" | "always" | "paused""auto"Controls motion policy. Auto pauses for reduced motion and while the shader is outside the viewport.
colorsstring[]["#ff9d00", "#fd4f30", "#809bff", "#6d2eff", "#333aff", "#f15cff", "#ffd557"]Supplies up to seven panel colors. The wrapper provides a vivid 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, playback policy, documentation, and Registry packaging; it does not vendor or modify Paper's shader source.