Usage
- React
- Vanilla JS
Props
Background color.
Foreground (spiral ink) color.
Spacing falloff that simulates perspective.
0 = flat spiral, 1 = maximum density falloff. Range: 0 to 1.Power of wave-based shape distortion along the spiral arms. Range:
0 to 1.Thickness of the spiral curve. Range:
0 to 1.Stroke width taper along the spiral. Positive = fades away from center, negative = grows away from center,
0 = uniform. Range: -1 to 1.Extra stroke width at the center. Has no effect when
strokeWidth is 0.5. Range: 0 to 1.Noise distortion applied over the canvas. Has no effect when
noiseFrequency is 0. Range: 0 to 1.Noise frequency. Has no effect when
noise is 0. Range: 0 to 1.Edge softness of the spiral stroke.
0 = hard edge, 1 = fully feathered. Range: 0 to 1.Animation speed multiplier. Set to
0 to pause.Static frame position when
speed is 0.Presets
| Name | Description |
|---|---|
Default | Clean blue spiral on dark navy |
Jungle | Noise-warped green spiral |
Droplet | Tapered spiral with noise, pink on white |
Swirl | Low-density soft-edged swirl |
Sizing
This shader usesShaderSizingParams. See Sizing and fit for fit, scale, rotation, offsetX, offsetY, originX, originY, worldWidth, and worldHeight props.