Skip to main content

Colorir

docs/source/_static/image/readme_palette_picker.png

What is colorir?

colorir is a package used to create and manipulate color palettes.

Main features

  • Create color schemes and save them to use in different projects

  • Interpolate colors in different formats (such as RGB, CIELab etc) to make gradients and color maps

  • Have access to a curated selection of unique color palettes and color names

  • Easily visualize swatches of colors in the terminal

Getting started

It is very easy to create an original and attractive color palette with colorir:

import colorir as cl
grad = cl.PolarGrad(["ffff00", "ff00ff"])  # Creates a gradient from yellow to magenta
palette = cl.StackPalette(grad.n_colors(5))  # Samples 5 colors along the gradient and creates a palette with them
palette *= cl.HCLab(1, 0.5, 1)  # Desaturates the palette 50% to get a more pleasing look
palette  # Shows the palette we created in the terminal
docs/source/_static/image/readme_palette.png

colorir also works seamlessly with other python packages and you don’t have to convert colorir objects to pass them as input to other frameworks:

import matplotlib.pyplot as plt

plt.pie([0.25, 0.15, 0.20, 0.20, 0.20], colors=palette)
plt.show()
docs/source/_static/image/readme_pie_chart.png

For more information (including use-cases and examples), see colorir’s documentation here.

Metadata

Release files for colorir 2.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colorir 2.1.3
File Size Uploaded Provenance Actions
colorir-2.1.3.tar.gz 107.8 kB Without provenance Details for colorir-2.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for colorir 2.1.3
File Interpreter ABI Platform Actions
colorir-2.1.3-py3-none-any.whl Python 3 none any Details for colorir-2.1.3-py3-none-any.whl

Total release size: 243.6 kB

Release files / colorir-2.1.3.tar.gz

Download URL colorir-2.1.3.tar.gz
Size 107.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9c30f0bd2e056699dbc8f989a70d2965087cffcd3b26a0ee909fb3f7ae736d11
BLAKE2b-256 checksum
How to use checksums
112919d279954c5a0e292482ca82002f4ba8f027e4c9ed8e4c8f0dccc3541f65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.14

Release files / colorir-2.1.3-py3-none-any.whl

Download URL colorir-2.1.3-py3-none-any.whl
Size 135.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f88f9a02ad1013e6b1ff80662e9e821ecd55e2de42d674b3f462338473be838e
BLAKE2b-256 checksum
How to use checksums
4007e815c62ed86a68c90c6be2f3729abd7505a102ec703adbb18c7e32e8bd45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.14

Security for colorir 2.1.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.

Release history Release notifications | RSS feed

This release

2.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page