The dither operation based on the following work:
Floyd-Steinberg's error diffusion dither algorithm
- Floyd, R. W., and L. Steinberg, "An Adaptive Algorithm for Spatial Gray Scale," International Symposium Digest of Technical Papers, Society for Information Displays, 1975, p. 36.