Animated bands of color twisting and bending, producing spirals, arcs, and flowing circular patterns. Supports up to 10 colors with adjustable twist, center, and noise distortion.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.
React Usage
Vanilla JavaScript Usage
Parameters
Background color in hex format.
Array of up to 10 stripe colors in hex format.
Number of color bands. Set to 0 for concentric ripples. Range: 0 to 15.
Vortex power controlling the spiral effect. 0 creates straight sectoral shapes. Range: 0 to 1.
Distance from the center where swirl colors begin to appear. Range: 0 to 1.
Blend point between colors, where 0.5 equals equal distribution. Range: 0 to 1.
Color transition sharpness. 0 creates hard edges, 1 creates smooth gradients. Range: 0 to 1.
Strength of noise distortion. No effect when noiseFrequency is 0. Range: 0 to 1.
Frequency of noise distortion. No effect when noise is 0. 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 Swirl shader comes with several built-in presets:- Default: Red and pink gradient swirl
- 007: James Bond-inspired gun barrel effect
- Opening: Warm orange iris opening effect
- Candy: Bright pastel rainbow swirl
