File: //home/arjun/projects/env/lib/python3.10/site-packages/PIL/__pycache__/ImagePalette.cpython-310.pyc
o
we� � @ sz d dl Z ddlmZmZmZmZ G dd� d�Zdd� Zdd � Zd
d� Z dd
d�Z
ddd�Zddd�Zddd�Z
dd� ZdS )� N� )�GimpGradientFile�GimpPaletteFile�
ImageColor�PaletteFilec @ s| e Zd ZdZddd�Zedd� �Zejdd� �Zed d
� �Zejdd
� �Zdd
� Z dd� Z
dd� ZeZddd�Z
dd� ZdS )�ImagePalettea�
Color palette for palette mapped images
:param mode: The mode to use for the palette. See:
:ref:`concept-modes`. Defaults to "RGB"
:param palette: An optional palette. If given, it must be a bytearray,
an array or a list of ints between 0-255. The list must consist of
all channels for one color followed by the next color (e.g. RGBRGBRGB).
Defaults to an empty palette.
�RGBNc C s"