skip to navigation
skip to content

colorz 1.0.3

Color scheme generator.

Color scheme generator.


pip install colorz

or just move to somewhere in your $PATH. If you do the latter, you must install the dependencies in the following section manually.


  • Python (2 or 3)
  • Pillow
  • scipy


usage: colorz [-h] [-n NUM_COLORS] [--minv MINV] [--maxv MAXV] [--bold BOLD]
              [--font-size FONT_SIZE] [--bg-color BG_COLOR] [--no-bg-img]

A color scheme generator. Takes an image (local or online) and grabs the most
dominant colors using kmeans. Also creates bold colors by adding value to the
dominant colors. Finally, outputs the colors to stdout (one normal and one
bold per line, space delimited) and generates an HTML preview of the color

positional arguments:
  image                 the image file or url to generate from.

optional arguments:
  -h, --help            show this help message and exit
  -n NUM_COLORS         number of colors to generate (excluding bold).
                        Default: 6
  --minv MINV           minimum value for the colors. Default: 170
  --maxv MAXV           maximum value for the colors. Default: 200
  --bold BOLD           how much value to add for bold colors. Default: 50
  --font-size FONT_SIZE
                        what font size to use, in rem. Default: 1
  --bg-color BG_COLOR   what background color to use, in hex format. Default:
  --no-bg-img           whether or not to use a background image in the
                        preview. Default: background image on
  --no-preview          whether or not to generate and show the preview.
                        Default: preview on
File Type Py Version Uploaded on Size
colorz-1.0.3-py2.py3-none-any.whl (md5) Python Wheel 3.6 2017-09-05 7KB
colorz-1.0.3.tar.gz (md5) Source 2017-09-05 4KB