It's happening! My book has launched on Early Access. Nine chapters are available and more is to come. I think it's already an interesting read.
https://leanpub.com/paletteprogramming
It's a textbook that teaches how the median cut and k-means algorithms work, and has *a lot* to say about dithering.