Instead of using a map, we set a single threshold value like 128. We evaluate each pixel against this threshold like before.
This time, we take the difference between the original value and our new value and apply that difference, known as the error, to surrounding pixels.