Floyd-Steinberg Dithering

Hi @youssef.eskandar, @DavidRutten, @Dancergraham, @laurent_delrieu and everybody else interested,

Today, I had some time to attempt my own Floyd-Steinberg dithering algorithm in GHPython.
It opens an image from a provided path, performs the dithering and outputs points and colors for visualisation purposes. It’s by no means perfect, but it works! :yum:

dithering_rhino

And this one is for you, @youssef.eskandar! :wink:

dithering_shiffman

Everybody, please feel free to test it yourself!

floyd_steinberg_dithering_v1.gh (10.9 KB)

10 Likes