Python package colourmap generates an N unique colors from the specified input colormap.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
colourmap-1.1.7.tar.gz
(6.9 kB
view details)
Built Distribution
File details
Details for the file colourmap-1.1.7.tar.gz
.
File metadata
- Download URL: colourmap-1.1.7.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c98fb399a2111feee678e3618bbda6c2d7805fd6558e1962795ee167b7c4efcd |
|
MD5 | 4de80db5b34ad91603129c2807a03480 |
|
BLAKE2b-256 | 04da0358d23fe1c308869962ef911e4148d1f4fa3a0700005a55a0ec6b2ff5e9 |
File details
Details for the file colourmap-1.1.7-py3-none-any.whl
.
File metadata
- Download URL: colourmap-1.1.7-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cffc3f4d477da58a2147922be38dbbbb85b4210df55825b9c113320f0e37ab4 |
|
MD5 | 41d2beda8e6c294f7820199911b908b8 |
|
BLAKE2b-256 | 20f3bf9bf5c7ab7d4a9b0e1c885c6681158205fb6dde0777bb4ab8e56a91d46a |