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.1.tar.gz (4.9 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.1-py2.py3-none-any.whl (7.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for colorz-1.0.1.tar.gz
Algorithm Hash digest
SHA256 22e1e41046170056af9c89a9f82ebc213c0188d883a77188cfd9ec6a43f75a7f
MD5 41a7652a019b1f1ea39a21da23b9c046
BLAKE2b-256 ec9a3cddf3e6505065c889247608d66f39a7933a1e17f11b7fe380d67dc2022d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for colorz-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5b319edb271446d8cf606cb9f9f10967f1cbd709f16127517bc275ef7b9918a9
MD5 57076f0b5d1ac96400d03656d992875b
BLAKE2b-256 e50b4605c94ed6d1cf5c2c2e1c4709516634a1936aff293dc0a6482eaae50871

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