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.
16x16 matrix (tiled 2x)
8x8 matrix (tiled 4x)
4x4 matrix (tiled 8x)
2x2 matrix (tiled 16x)