[<-] Back

Dither

Vite, WebGL2, Canvas2D · 2026 · 1 min read

Real-time image and video dithering with a WebGL2 fragment-shader pipeline and a byte-faithful Canvas2D CPU fallback. The GPU path chains sample, chromatic aberration, blur, tone, glow, dither, nearest-neighbour upscale, post-FX, tint, and scanlines through low-res FBO passes; error-diffusion dithers (Floyd–Steinberg, Atkinson, Jarvis) stay on the CPU to remain pixel-identical to the reference. Built as an ES-module app with Vite.