PNG versions of Bayer matrix for ordered dithering, plus the python used to generate them.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
images Delete empty Aug 29, 2016
LICENSE remove attribution requirement from LICENSE May 31, 2017 Add source Aug 29, 2016 Update Sep 29, 2016


A simple algorithm to generate bayer matrix for ordered dithering. Can output to PNG using PIL. The PNG files included in this repo should be enough for most use cases.

For dithering, the 16x16 version should produce the best results with the least banding since it has 256 discrete values as opposed to 64 in the 8x8 version.

16x2 16x16 matrix (tiled 2x)
8x4 8x8 matrix (tiled 4x)
4x8 4x4 matrix (tiled 8x)
2x16 2x2 matrix (tiled 16x)

More sizes