facelessuser / coloraide-extras

Some extra color spaces and such for ColorAide
https://facelessuser.github.io/coloraide-extras
MIT License
2 stars 0 forks source link
colors python

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

ColorAide Extras

Overview

ColorAide Extras is an add-on pack containing various plugins for ColorAide. The idea behind ColorAide Extras is to provide an environment for experimental color spaces, ∆E methods, and other plugins.

Normally, it is advisable to only cherry pick color spaces you need. Rarely do people need every color space. This can be done simply by registering the color spaces you'd like.

>>> from coloraide import Color as Base
>>> from coloraide_extras.spaces.uvw import UVW
>>> class Color(Base): ...
...
>>> Color.register(UVW())
>>> Color('red').convert('uvw')
color(--uvw 171.8 24.715 52.261 / 1)

But, 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.everything import ColorAll as Color
>>> Color('color(--uvw 171.8 24.715 52.261 / 1)')
color(--uvw 171.8 24.715 52.261 / 1)

Documentation

https://facelessuser.github.io/coloraide-extras

License

MIT