Dithering in python is a small script that only does that, styling a picture with 1-bit bayer ordered dithering or color bayer ordered dithering.
Clone the github repository:
git clone https://github.com/iribirii/dithering_python.git
python dithering_python.py [-h][-c][-r RESIZE_X RESIZE_Y][-s SCALE_FACTOR][-b BAYER] file
The script has some different options that you can choose.
- The dimension of the bayer matrix that will be used for the style (1, 2, 3 or 4)
- Black&White style or color.
- Resize the image with X and Y selected values
- Scale the image by a factor. <1 for a more pixel-art kind of result.
B&W gradient with bayer dimension 2, 3 and 4:
RGB spectrum with bayer dimension 2, 3 and 4:
Any pull requests are wolcome.