@neauoire @levibeach here's a bunch I did in Kotlin a while back: https://codeberg.org/oppen/DitherKt/src/branch/master/src/online/fisk/filters/Filter.kt
@neauoire if you find any problems with it let me know. The code is based on the info I found on this page: https://tannerhelland.com/2012/12/28/dithering-eleven-algorithms-source-code.html
@neauoire @levibeach Biskwit, NeuQuant and Wu's Quantizers are also worth a look. While they focus on colour the techniques work on greys too. I use NeuQuant and Wu for converting between 24-bit and fixed palette spaces on Amiga:
Also Graphics Gems II is a hell of a book for this sort of thing: http://index-of.co.uk/Game-Development/Programming/Graphics%20Gems%202.pdf
@mood oh wow! I love this!! 🤔 though I wish it maintained its pixel-perfection instead of blurring things a bit.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!