colorz
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
Metadata
Release files for colorz 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| colorz-1.0.3.tar.gz | 5.1 kB | Without provenance | Details for colorz-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colorz-1.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for colorz-1.0.3-py2.py3-none-any.whl |
Total release size: 12.4 kB
Release files / colorz-1.0.3.tar.gz
| Download URL | colorz-1.0.3.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c04ff63896281f2ee1327bcdff2e76a339f70559abd8a25d28c0d1fb28480d3e
|
|
BLAKE2b-256 checksum How to use checksums |
969d639c635019131a3ff7fc9265fd2b4afb718ac60720ea321946ad3869b2eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / colorz-1.0.3-py2.py3-none-any.whl
| Download URL | colorz-1.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8e15fcaa4211f9674b8c2f5c69eeace60a5bbed1e21e67e786787a914d924d14
|
|
BLAKE2b-256 checksum How to use checksums |
6b381dcc0641bfbf8edf1d3310a879cde418ff8e86c13f121c8d018940a992aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for colorz 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.