shape parameter. Frequency, amplitude, spacing, and softness give full control over the texture appearance.
Usage
- React
- Vanilla JS
Props
Foreground color of the wave lines.
Background color between the wave lines.
Line shape.
0 = zigzag, 1 = sine, 2–3 = irregular waves. Fractional values morph between shapes. Range: 0 to 3.Wave frequency (number of cycles). Range:
0 to 2.Wave amplitude (height of oscillation). Range:
0 to 1.Space between every two wave lines. Range:
0 to 2.Blend point between the front and back colors.
0.5 = equal distribution. Range: 0 to 1.Color transition sharpness.
0 = hard edge, 1 = smooth gradient. Range: 0 to 1.Presets
| Name | Description |
|---|---|
Default | Yellow zigzag lines on black |
Groovy | Irregular waves, coral and cream |
Tangled up | Dense entangled waves in teal and green |
Ride the wave | Large wave silhouettes in near-black and white |
Sizing
This shader usesShaderSizingParams. See Sizing and fit for fit, scale, rotation, offsetX, offsetY, originX, originY, worldWidth, and worldHeight props.