One thing with dithering writeups that always bothered me: There never seems to be coverage of how to calculate colour similarity when there are multiple different colours involved, rather than just black and white gradients.
I am trying to implement it for myself, but really struggling to find any proper literature on that, that I am actually able to understand.