A single-colored animated spiral that morphs across a wide range of shapes - from crisp, thin-lined geometry to flowing whirlpool forms and wavy, abstract rings.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.
Foreground (spiral) color in hex format.
Spacing falloff simulating perspective. 0 creates a flat spiral. Range: 0 to 1.
Power of shape distortion applied along the spiral. Range: 0 to 1.
Thickness of the spiral curve. Range: 0 to 1.
How much the stroke loses width away from center. 0 maintains full visibility. Range: 0 to 1.
Extra stroke width at the center. No effect when strokeWidth is 0.5. Range: 0 to 1.
Noise distortion applied over the canvas. No effect when noiseFrequency is 0. Range: 0 to 1.
Frequency of noise distortion. No effect when noise is 0. Range: 0 to 1.
Color transition sharpness. 0 creates hard edges, 1 creates smooth 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 Spiral shader comes with several built-in presets:- Default: Clean blue spiral on dark background
- Droplet: Pink noisy spiral with tapered stroke
- Jungle: Green organic spiral with heavy noise
- Swirl: Navy blue smooth whirlpool
