colourmap
* Colourmap generates an unique lit of RGB and HEX colors for the specified input list.
⭐️ Star this repo if you like it ⭐️
Documentation pages
On the documentation pages you can find more information about colourmap with examples.
Install colourmap from PyPI
pip install colourmap # normal install
pip install -U colourmap # update if needed
Import colourmap package
from colourmap import colourmap
Quick example
Use the documentation pages for more detailed usage. Some of the most used functionalities are linked below.
from colourmap import colourmap
# Create N colors
c = colourmap.generate(10)
# From list
c_rgb, c_dict = colourmap.fromlist([1,1,2,2,3,1,2,3])
# to HEX
c_hex = colourmap.rgb2hex(c_rgb)
Example: Generate N unique colors from a specific colormap
Example: Generate unique colors based on input labels
Example: Create unique colors based on seaborn or matplotlib
Example: Conversion RGB to HEX
Example: Conversion HEX to RGB
Example: Create a linear gradient between colors
Maintainer
Release files for colourmap 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| colourmap-1.2.1.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| colourmap-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.8 kB
Release files / colourmap-1.2.1.tar.gz
| Download URL | colourmap-1.2.1.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86b614f458b301145e52f5aaf6f270911021eeb6170a42ce3354b2c5b70e3cf1
|
|
BLAKE2b-256 checksum How to use checksums |
7677d38688a9146377415cbbc5e2f30d2dc4cd4681faddf574e1dc5de29d7d15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / colourmap-1.2.1-py3-none-any.whl
| Download URL | colourmap-1.2.1-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4dac30026b072fc210fa23ddaf17b48fbf5c75b947425e9ab10b514afdcef39f
|
|
BLAKE2b-256 checksum How to use checksums |
5ac1d7637c217a189562e8dfcd0535b2971e3e898b6249d56324f2164d9b38c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|