Skip to content
Snippets Groups Projects
README.md 713 B
Newer Older
  • Learn to ignore specific revisions
  • Quentin Bolsee's avatar
    Quentin Bolsee committed
    # dither-maker
    
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    ![](examples/cat_dither.svg)
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    ## Usage
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    
    ```
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    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).
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    ```