colourmap
* Colourmap
generates an unique lit of RGB and HEX colors for the specified input list.
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)