React Usage
Vanilla JavaScript Usage
Parameters
Array of up to 7 RGBA colors used to color the panels.
Background color in hex format.
Angle between every 2 panels. Lower values create more densely packed panels. Range: 0.25 to 7.
Skew angle applied to left side of all panels. Creates perspective distortion. Range: -1 to 1.
Skew angle applied to right side of all panels. Creates perspective distortion. Range: -1 to 1.
Panel length relative to total height. Range: 0 to 3.
Whether to show color highlights on panel edges for glass-like effect.
Side blur amount. 0 creates sharp edges. Range: 0 to 0.5.
Transparency near central axis. Higher values make center more transparent. Range: 0 to 1.
Transparency near viewer. Higher values make foreground more transparent. Range: 0 to 1.
Color mixing within a panel. 0 creates solid colors, 1 creates gradients. Range: 0 to 1.
Animation speed multiplier. Set to 0 to pause animation.
Specific frame to display when speed is 0.
Common Sizing Parameters
Overall zoom level of the graphics. Range: 0.01 to 4.
Rotation angle in degrees. Range: 0 to 360.
How to fit the shader into the canvas dimensions.
Horizontal offset of the graphics center. Range: -1 to 1.
Vertical offset of the graphics center. Range: -1 to 1.
Presets
The Color Panels shader comes with several built-in presets:- Default: Seven rainbow colors rotating slowly
- Glass: Four colors with edge highlights and blur
- Gradient: Soft gradient panels with high fadeOut
- Opening: Cyan panels opening like a camera iris
Notes
- The number of colors affects the panel arrangement:
- 3 colors: 12 panels
- 4 colors: 16 panels
- 5 colors: 20 panels
- 7 colors: 14 panels
- Use
edges={true}withblurfor a frosted glass effect - Negative
angle1andangle2values create an opening iris effect - Combine
gradient={1}withfadeOutfor soft, ethereal transitions
