‹dither-dither›

↓

This is a web component for monochrome dithering. It works on images and videos. It's based on shaders and should be quite fast. It uses a blue noise threshold map. But you can also specify a custom threshold map.

It guarantees crisp visuals for highly compressed imagery. You'll get away with using images and videos of atrocious quality

npm i @krisenstab/dither-dither
import 'dither-dither'
<dither-dither src="…"></dither-dither>

image

video

custom threshold map

colours

transparency

stretch

cover

contain

source on github package on npm

design + development → krisenstab