2025-12-20 07:50:43 +01:00
|
|
|
|
|
|
|
|
Color
|
|
|
|
|
=====
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: suou.color
|
|
|
|
|
|
2026-01-09 11:32:29 +01:00
|
|
|
libsuou provides some utilities for the manipulation of colors.
|
|
|
|
|
|
|
|
|
|
In particular, conversion to and from RGB and OKLCH colors.
|
|
|
|
|
|
|
|
|
|
Terminal colors
|
|
|
|
|
---------------
|
|
|
|
|
|
|
|
|
|
.. autoclass:: Chalk
|
|
|
|
|
|
|
|
|
|
Note: instance is ``chalk`` and can be used as-is
|
2025-12-20 07:50:43 +01:00
|
|
|
|
|
|
|
|
Web colors
|
|
|
|
|
----------
|
|
|
|
|
|
|
|
|
|
.. autoclass:: RGBColor
|
2026-01-29 18:59:55 +01:00
|
|
|
|
|
|
|
|
.. automethods::
|
2025-12-20 07:50:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
.. autoclass:: WebColor
|
|
|
|
|
|
|
|
|
|
|
2026-01-29 18:59:55 +01:00
|
|
|
.. autoclass:: LinearRGBColor
|
|
|
|
|
|
|
|
|
|
.. automethods::
|
2026-01-09 11:32:29 +01:00
|
|
|
|
|
|
|
|
|
2025-12-20 07:50:43 +01:00
|
|
|
.. autoclass:: XYZColor
|
|
|
|
|
|
2026-01-29 18:59:55 +01:00
|
|
|
.. automethods::
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. autoclass:: OKLabColor
|
2026-01-09 11:32:29 +01:00
|
|
|
|
2026-01-29 18:59:55 +01:00
|
|
|
.. automethods::
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. autoclass:: OKLCHColor
|
|
|
|
|
|
|
|
|
|
.. automethods::
|