Implementations of some of the dithering methods from https://surma.dev/things/ditherpunk/ in go.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
David Ashby 301ee00b69
clean up command-line parsing and add some error-diffusion experiments
2 years ago
example start working out how the color versions of these work... 2 years ago
.gitignore init 2 years ago
README.md start working out how the color versions of these work... 2 years ago
color_quant.go clean up command-line parsing and add some error-diffusion experiments 2 years ago
go.mod init 2 years ago
main.go clean up command-line parsing and add some error-diffusion experiments 2 years ago
quantizer.go start working out how the color versions of these work... 2 years ago
quantizer_test.go add simpleerror ditherer and begin building out tests 2 years ago

README.md

dither

This repo implements a number of the dithering methods detailed on https://surma.dev/things/ditherpunk/.

light.png, light-hires.jpg, dark.png, and dark-hires.jpg are from Surma's post, used under CC BY-NC-SA 4.0.

david.png is taken from the wikipedia article on dithering, where it was released into the public domain.

I took cricket.jpg.