
Spider Particles Background
Backgrounds
A grainy canvas background that adds computational texture behind hero copy, product sections, and technical brand moments.
Dither Canvas creates a supporting surface: a grainy digital texture gives the hero signal.
Use it behind hero copy, product sections, and technical brand moments where the background should make the page feel engineered without asking the browser to run a cinematic universe.
The main risk is readability. Headlines, body copy, fields, and CTAs must stay clear above the layer. On mobile it drops to fewer character columns and turns off cursor distortion, but there is no reduced-motion mode or static fallback, so the field keeps animating.
import DitherCanvas from "@/components/effects/dither-canvas"; export default function Page() { return ( <main className="relative min-h-screen w-screen overflow-hidden bg-black"> <DitherCanvas charColumns={100} colorizeFromVideo videoZoom={1.9} charZoom={0.9} spellBrightChars /> </main> );}A robotics company can use Dither Canvas behind the hero of a product announcement. A short clip of the machine in motion is rendered as a dense field of characters, and moving the cursor distorts the field like fluid while the headline sits in clear HTML on top.
The outcome is texture with signal. The page feels computational before the visitor reads a word. In production, preserve readable HTML above the surface, cap animation cost, pause offscreen work, and provide a static fallback.
Not for low-contrast text sections, long reading pages, or pages already carrying heavy video/WebGL cost.
Keep density low enough to protect text, pause animated canvas work offscreen, and provide a static CSS/image fallback.
Decorative backgrounds should be hidden from assistive technology. On mobile, reduce density and keep foreground contrast high.
| Prop | Type | Default | Description |
|---|---|---|---|
charColumns | number | 145 | Controls the density of generated character columns. |
colorizeFromVideo | boolean | false | Uses video color data instead of fixed monochrome characters. |
videoZoom | number | 1 | Zoom level applied to the video source. |
charZoom | number | 1 | Scale factor for the rendered character grid. |
colorBoost | number | 1.4 | Boosts sampled color intensity. Needs Colorize From Video on. |
Use it when a grainy digital texture gives the hero signal supports the foreground message without harming readability.
No. Dither Canvas renders with a WebGL2 shader and draws nothing in browsers without WebGL2.
Use masks, fades, lower opacity, and density controls around headings, forms, and CTAs.
The render loop already pauses while the canvas is offscreen or the tab is hidden.
Below 640px it renders 45% of the character columns (55% on tablets) and, with disableMobileCursor on by default, ignores the cursor. It does not switch to a static texture.
Need a custom effect? Tell us what to create.