palettes palettes ¶ palettes¶ Classes¶ Palette ¶ Palette(name='', color_depth=16, swapped=False, cached=False) A class to represent a color palette. Methods:¶ color_rgb ¶ color_rgb(color) color can be an 16-bit integer or a tuple, list or bytearray of length 2 or 3. MappedPalette ¶ MappedPalette(name, color_depth, swapped, color_map) A class to represent a color palette with a color map. Methods:¶ color_rgb ¶ color_rgb(color) color can be an 16-bit integer or a tuple, list or bytearray of length 2 or 3.