---
Product: Aspose.Font
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/font/python/colorpalette
---

# ColorPalette

## Overview

`ColorPalette` is a class in Aspose.Font FOSS for Python.

This class declares 2 methods for ColorPalette objects in Python programs.
Available methods include: `__getitem__`, `__len__`.
Public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Properties: `colors`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `colors` | `list[tuple[int, int, int, int]]` | Read/Write | Gets or sets the colors. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__len__()` → `int` | Calls __len__ on this ColorPalette instance. |
| `__getitem__(index: int)` → `tuple[int, int, int, int]` | Calls __getitem__(index) on this ColorPalette instance. |

## See Also

- [Aspose.Font — Enterprise API Reference](https://reference.aspose.com/font/)