Skip to content
Snippets Groups Projects
Quentin Bolsee's avatar
Quentin Bolsee authored
6be609bd
History
Name Last commit Last update
examples
README.md
dither-maker.py
requirements.txt

dither-maker

Usage

usage: dither-maker.py [-h] [-i INPUT] [-o OUTPUT] [--invert] [-n NUMBER] [-a A] [-b B]

Converts an image into a dithered svg file.

options:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input filename.
  -o OUTPUT, --output OUTPUT
                        Output filename (default: <filename_in>_dither.svg).
  --invert              Output white dots on a black background.
  -n NUMBER, --number NUMBER
                        Number of dots horizontally (default=100).
  -a A                  small diameter 0-1 (default:0.1).
  -b B                  large diameter 0-1 (default:0.82).