Animated 2-color dithering over multiple pattern sources (noise, warp, dots, waves, ripple, swirl, sphere). Features various dithering algorithms including random and Bayer matrix patterns.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
Background color in hex format.
Foreground (ink) color in hex format.
Shape pattern type:
simplex: Simplex noise patternwarp: Warped flowing patterndots: Animated dot patternwave: Sine wave patternripple: Circular ripple effectswirl: Twisted vortex patternsphere: 3D illuminated sphere
Dithering algorithm type:
random: Random dithering2x2: 2×2 Bayer matrix4x4: 4×4 Bayer matrix8x8: 8×8 Bayer matrix (finest)
Pixel size of dithering grid. Higher values create larger pixels. Range: 0.5 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 Dithering shader comes with several built-in presets:- Default: Blue sphere with 4×4 Bayer dithering
- Warp: Green flowing pattern with 4×4 dithering
- Sine Wave: Cyan wave with 4×4 dithering
- Ripple: Orange circular ripples with 2×2 dithering
- Bugs: Green animated dots with random dithering
- Swirl: Blue vortex with 8×8 dithering
Notes
- This shader performs sizing in the fragment shader to keep pixel grid consistent
- Different dithering types create different visual textures:
random: Organic, grainy appearance2x2: Coarse, checkerboard-like pattern4x4: Medium detail, classic dithering look8x8: Fine detail, smooth gradations
- Experiment with
sizeparameter to achieve retro pixel art effects
