React Usage
Vanilla JavaScript Usage
Parameters
Array of up to 10 gradient colors in hex format. Colors are blended based on the underlying pattern.
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.
Base pattern type:
checks: Checkerboard patternstripes: Horizontal stripesedge: Split edge pattern
Zoom level of the base pattern. Range: 0 to 1.
Strength of noise-based distortion applied to the pattern. Range: 0 to 1.
Strength of the swirl distortion effect. Range: 0 to 1.
Number of layered swirl passes. Only effective when swirl > 0. Range: 0 to 20.
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 Warp shader comes with several built-in presets:- Default: Purple and black checkerboard with moderate swirl
- Cauldron: Green, blue, and dark tones with edge pattern
- Ink: High contrast black and white with sharp edges
- Kelp: Organic green stripes with minimal swirl
- Nectar: Warm golden tones with edge pattern
- Passion: Deep red and orange with checks pattern
