Skip to main content

Color preview.

Color scheme generator.

Installation

pip install colorz

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

Dependencies

  • Python (2 or 3)

  • Pillow

  • scipy

Usage

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

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
scheme.

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:
                        #272727
  --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

Thanks to

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colorz-1.0.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colorz-1.0.2-py2.py3-none-any.whl (7.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file colorz-1.0.2.tar.gz.

File metadata

  • Download URL: colorz-1.0.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for colorz-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7ed705cb771aeecb860d0a102198d7168b36721081fa28295dfe9fd700400179
MD5 d9a9a3ff59a0865db90254153ba2a1b7
BLAKE2b-256 215ea4c971b251bbb31e9d37089ebb62d6d211d83db8bc45da7f4cb1a38bedaf

See more details on using hashes here.

File details

Details for the file colorz-1.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for colorz-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a6531311780951013747a577bc6cfd4e09a0f435c115734259ee40973088f5a2
MD5 93ea93b99e89ecb9900b38ace3074e01
BLAKE2b-256 e99114fcccc45cbccf2774fd244063eb2f7f5510a2770e092373e19860cc4a3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page