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 1 month ago
example start working out how the color versions of these work... 1 month ago
.gitignore init 1 month ago
README.md start working out how the color versions of these work... 1 month ago
color_quant.go clean up command-line parsing and add some error-diffusion experiments 1 month ago
go.mod init 1 month ago
main.go clean up command-line parsing and add some error-diffusion experiments 1 month ago
quantizer.go start working out how the color versions of these work... 1 month ago
quantizer_test.go add simpleerror ditherer and begin building out tests 1 month 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.