Error accumulation dithering is used to generate images of lower color
resolution from input data of higher color resolution. A target color is
received at high resolution for a current pixel of the image. The target
color is intermediate between a first color and a second color at a low
color resolution. One of the first color and the second color is selected
as a final pixel color, based on whether an accumulated error determined
from previous pixels is above or below a threshold amount. After
selecting the final pixel color, an updated accumulated error is provided
to the next pixel.