React Usage
Vanilla JavaScript Usage
Parameters
string
default:"'#ffbb00'"
Foreground color in hex format.
string
default:"'#000000'"
Background color in hex format.
number
default:"0"
Line shape style. Fractional values morph between shapes:
- 0: Zigzag
- 1: Sine wave
- 2-3: Irregular waves
number
default:"0.5"
Wave frequency controlling the number of cycles. Range: 0 to 2.
number
default:"0.5"
Wave amplitude controlling the height. Range: 0 to 1.
number
default:"1.2"
Space between every two wavy lines. Range: 0 to 2.
number
default:"0.1"
Blend point between front and back colors, where 0.5 equals equal distribution. Range: 0 to 1.
number
default:"0"
Color transition sharpness. 0 creates hard edges, 1 creates smooth gradients. Range: 0 to 1.
Common Sizing Parameters
number
default:"0.6"
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 Waves shader comes with several built-in presets:- Default: Orange zigzag waves on black
- Groovy: Vertical flowing waves with soft colors
- Tangled up: Green and blue irregular waves
- Ride the wave: High amplitude dramatic waves
Notes
- This shader is static and does not animate
- Supports higher resolution rendering (up to 6016×3384 pixels)
- Use fractional
shapevalues to create unique hybrid patterns - Combine with
rotationto create vertical or diagonal wave patterns
