Skip to main content

Color scheme generator.

Color preview.

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: 40
--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.0.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.0-py2.py3-none-any.whl (7.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for colorz-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9cb6d6b0fec70dcc84ae8e422bad16746827618ddaaf6152bd57f3d0a9a50f55
MD5 23b0fcb71916921b0932caa4ef6ab751
BLAKE2b-256 07e22cff86bb0e62b23932b9f88a8db721b819d07319fc62d0d4615255170b79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for colorz-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8ea97ff89386d5b1d9a819af5fdf9d5c0c765bb8c72e7ec457de867709091133
MD5 d8943fc3f6255b2adf01609a680de412
BLAKE2b-256 725aa831e9b30c93a5447ddc37716a9c09aa469bbc5377d8e6907e5bac4179f3

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 Sentry Error logging StatusPage Status page