Effects gallery
Every algorithm, palette, and pixel-size setting ditherkit ships, rendered on a single source image via @ditherkit/next. This page is generated server-side and cached by ISR — the same pipeline your production app would use.
Seven algorithms
Same image, same black-and-white palette. The differences are purely in how each algorithm decides where to place the dots.

Classic error diffusion. The default for photographs — sharp detail, smooth gradients.

Early-Mac look. Only diffuses 6/8 of the error, so shadows darken and highlights blow out.

A wider kernel than Floyd-Steinberg. Smoother gradients, slightly softer edges.

JJN-shaped, tuned weights. Sharper midtones; often the best-looking error diffusion on portraits.

Stucki with the bottom row removed — about twice as fast for very similar output.

Ordered dithering. Deterministic per pixel, tiles cleanly, gives the crosshatched printer/Game Boy look.

1-bit hard cut. No diffusion, no noise — great for stamps and stencils, bands badly on photos.
The same seven algorithms rendered through palettes.gameboy. Every algorithm in the library is colour-capable — pick a palette with 3+ entries and the nearest-colour lookup preserves hue, not just luminance.







Five built-in palettes
Same image, Floyd-Steinberg throughout. Only the palette changes. import { palettes } from '@ditherkit/core' gets you these as ready-to-use Color[] values.

The classic 1-bit target. Two entries — use it for print, stamps, or anything Macintosh-era.
palettes.bw
Four shades of the original DMG LCD. Ordered dark → light.
palettes.gameboy
High-intensity blue/magenta/cyan. 1980s PC games looked like this whether they wanted to or not.
palettes.cga
A perceptually-spaced subset of the 54-colour NES hardware palette.
palettes.nes
The fantasy console's 16-colour palette — bright, balanced, friendly to photos.
palettes.pico8Pixel size
Floyd-Steinberg on the black-and-white palette. The pixelSize prop downsamples before dithering and upscales the result with nearest-neighbour, so the dither pattern stays crisp at the display resolution.




