An animation sequence from Dithering (Part -1) article, illustrating how each pixel on an image is run through a threshold map to get the dithered image.
Complete article is available on https://visualrambling.space/dithering-part-1/
A Pen by Umair Akbar on CodePen.