Skip to main content

A color library for Python.

Project description

Donate via PayPal Discord Build Coverage Status PyPI Version PyPI Downloads PyPI - Python Version License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coloraide_extras-0.5.0.tar.gz (2.7 MB view hashes)

Uploaded Source

Built Distribution

coloraide_extras-0.5.0-py3-none-any.whl (19.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page