pypindou.color

Color palettes and color-space utilities.

This package provides the palette dataclasses, RGB/hex conversion helpers, packaged palette loading, and color-space conversion used by quantizers.

Example:

>>> from pypindou.color import hex_to_rgb, rgb_to_hex
>>> rgb_to_hex(hex_to_rgb("#FFFFFF"))
'#FFFFFF'

__all__

pypindou.color.__all__ = ['BeadColor', 'ColorSpace', 'Palette', 'RGB', 'convert_colors', 'get_palette', 'hex_to_rgb', 'list_palettes', 'load_palette', 'rgb_to_hex']

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.