Images · lib · 7K

Dither

Pure 1-bit dithering kernels with no DOM: Atkinson, Floyd–Steinberg, Bayer 4×4 and 8×8, and plain threshold. Rec. 601 luma with contrast, gamma and serpentine scanning; row-by-row so large images can be spread over idle time.

Install

pnpm dlx shadcn@latest add @s7ui/dither

Info

Files:
lib/dither.ts
Uses:
—
Packages:
—