Static line pattern configurable into textures ranging from sharp zigzags to smooth flowing waves. Supports various wave shapes and spacing controls.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/paper-design/shaders/llms.txt
Use this file to discover all available pages before exploring further.
React Usage
Vanilla JavaScript Usage
Parameters
Foreground color in hex format.
Background color in hex format.
Line shape style. Fractional values morph between shapes:
- 0: Zigzag
- 1: Sine wave
- 2-3: Irregular waves
Wave frequency controlling the number of cycles. Range: 0 to 2.
Wave amplitude controlling the height. Range: 0 to 1.
Space between every two wavy lines. Range: 0 to 2.
Blend point between front and back 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.
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 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
