Skip to content

sdsy888/dithering_python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Dithering in python

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.

Installation

Clone the github repository:

git clone https://github.com/iribirii/dithering_python.git

Usage

python dithering_python.py [-h][-c][-r RESIZE_X RESIZE_Y][-s SCALE_FACTOR][-b BAYER] file

Options and examples

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.

Black and white examples

B&W gradient with bayer dimension 2, 3 and 4:

bnw b2 bnw b3 bnw b4

Color examples:

RGB spectrum with bayer dimension 2, 3 and 4:

c b2 c b3 c b4

Animation example:

animation

Contributing

Any pull requests are wolcome.

License

MIT

About

抖动算法生成二值化图象

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%