All components

Dither Background

Dependency-free WebGL background with ordered Bayer dithering, pluggable wave, gradient, noise, and plasma shader fields, reduced-motion handling, and foreground content composition.

Shader models
Switch between wave, gradient, noise, and plasma fields.

Controls

Palette

Sign in to view this example's source code.

Sign in

Props

NameTypeDefaultDescription
childrenReactNode-Foreground DOM content rendered above the canvas.
model'wave' | 'gradient' | 'noise' | 'plasma''wave'Background shader field used before the dither pass.
colorsstring[]['#071a12', '#34d399']Two to four hex, RGB, or resolvable CSS colours used by the field palette.
gradientAnglenumber135Linear gradient angle in degrees for the gradient model and fallback CSS background.
pixelSizenumber4Size of each dither cell in CSS pixels.
speednumber0.7Procedural motion speed multiplier.
intensitynumber1Final shader colour intensity.
interactivebooleantrueWhether pointer position influences the blend.