A color library for Python.
Project description
ColorAide Extras
This is still a work in progress.
Like ColorAide, ColorAide Extras is very usable and out of the alpha stage, but it is currently in a prerelease state. This simply means that the API of ColorAide is still in flux to some degree and could affect this package.
Overview
ColorAide Extras is an add-on pack containing various plugins for ColorAide. ColorAide only ships with a select number of color spaces, ∆E methods, and gamut mapping alternatives. ColorAide Extras allows us to offer an additional number of uncommon and/or experimental set of color spaces and other plugins.
If you want access to all the color spaces for both ColorAide and ColorAide Extras, simply import Color
from
coloraide_extras
instead of coloraide
:
>>> from coloraide_extras import Color
>>> Color('color(--hunter-lab 46.113 82.694 28.337 / 1)')
color(--hunter-lab 46.113 82.694 28.337 / 1)
If you'd like to only grab a few, simply subclass Color
from coloraide
and register the additional plugins that you
desire:
>>> from coloraide import Color as Base
>>> from coloraide_extras.spaces.hunter_lab import HunterLab
>>> class Color(Base): ...
...
>>> Color.register(HunterLab)
>>> Color('red').convert('hunter-lab')
color(--hunter-lab 46.113 82.694 28.337 / 1)
Documentation
https://facelessuser.github.io/coloraide-extras
License
MIT
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
Built Distribution
Hashes for coloraide_extras-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09048761ab8726143a13263a6d461e1d712e90683b0185cc4810ca7b53ff0fca |
|
MD5 | dbff73e00a2e525d38ac2c23f003b81b |
|
BLAKE2b-256 | 4bc0baf3007f27c68e9ecd716a996d9cdea2df270fb7162e6efc221133341ecf |