Colourmap
Colourmap is for wrangling RGB and HEX colors.
Install / Use
/learn @erdogant/ColourmapREADME
colourmap
<!---[](https://www.buymeacoffee.com/erdogant)--> <!---[](https://erdogant.github.io/donate/?currency=USD&amount=5)-->* 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
<hr>
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
<hr>Maintainer
- Erdogan Taskesen, github: erdogant
- Contributions are welcome.
- For citations, please use the citation at the right side panel.
- If you wish to buy me a <a href="https://www.buymeacoffee.com/erdogant">Coffee</a> for this work, it is very appreciated :)
Related Skills
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
111.7kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
111.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
353.3kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
