React Usage
Vanilla JavaScript Usage
Parameters
string
default:"'#001429'"
Background color in hex format.
string
default:"'#79D1FF'"
Foreground (spiral) color in hex format.
number
default:"1"
Spacing falloff simulating perspective. 0 creates a flat spiral. Range: 0 to 1.
number
default:"0"
Power of shape distortion applied along the spiral. Range: 0 to 1.
number
default:"0.5"
Thickness of the spiral curve. Range: 0 to 1.
number
default:"0"
How much the stroke loses width away from center. 0 maintains full visibility. Range: 0 to 1.
number
default:"0"
Extra stroke width at the center. No effect when strokeWidth is 0.5. Range: 0 to 1.
number
default:"0"
Noise distortion applied over the canvas. No effect when noiseFrequency is 0. Range: 0 to 1.
number
default:"0"
Frequency of noise distortion. No effect when noise is 0. Range: 0 to 1.
number
default:"0"
Color transition sharpness. 0 creates hard edges, 1 creates smooth gradients. Range: 0 to 1.
number
default:"1"
Animation speed multiplier. Set to 0 to pause animation.
number
default:"0"
Specific frame to display when speed is 0.
Common Sizing Parameters
number
default:"1"
Overall zoom level of the graphics. Range: 0.01 to 4.
number
default:"0"
Rotation angle in degrees. Range: 0 to 360.
'none' | 'contain' | 'cover'
default:"'contain'"
How to fit the shader into the canvas dimensions.
number
default:"0"
Horizontal offset of the graphics center. Range: -1 to 1.
number
default:"0"
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
