ColorAide is a comprehensive color library for Python, providing advanced color space conversions, manipulation, interpolation, and gamut mapping. It supports a wide range of color models and offers precise control over color operations. The library is actively maintained with frequent releases, currently at version 8.8.1.
pip install coloraideVerified import paths — ran on the pinned version, not inferred.
Demonstrates creating colors, converting between color spaces, mixing colors, checking gamut, and fitting colors to a target gamut using the `Color` class.
Upgrade your Python environment to 3.10 or newer before installing ColorAide v8.7+.
Use `color.in_gamut('pointer-gamut')` and `color.fit('pointer-gamut')` respectively for checking and fitting to the Pointer Gamut.Be mindful of which luminance function you use. If you need luminance relative to the current color space's white point, use `color.Y()`. For D65-relative luminance, `color.luminance()` remains the correct choice.
If specific end point conditions are critical for your interpolation, explicitly configure them using the `end_conditions` parameter in interpolation methods.
Review results from these conversion functions. If previous gamut mapping behavior is desired, or custom `scale` options are needed, explicitly pass the relevant parameters to these functions.
Change your import statement from `import coloraide` to `from coloraide import Color`.
Replace `color_object.in_pointer_gamut()` with `color_object.in_gamut('pointer-gamut')`.Upgrade your Python environment to version 3.10 or newer.
No dependency data recorded yet.