![]() |
IDS peak ICV v1.2.0
|

Public Member Functions | |
| ColorPalette | create_from_colors (cls, *Color args) |
| Create a pallet from a number of Colors. | |
| ColorPalette | create_from_palette_constant (cls, ColorPaletteConstant color_palette_constant, int num_bits_per_pixel=8) |
| Create a pallet with a specific number of colors. | |
| None | __init__ (self, *Any args, **Any kwargs) |
| In order to create a color palette, please refer to the class methods. | |
| tuple[int, int, int] | rgb (self) |
| Get the next color of the palette as a tuple with the red, green and blue values. | |
| int | color_code (self) |
| Get the next color of the palette as an integer. | |
Protected Attributes | |
| _colorPalette = kwargs["_color_palette"] | |
| int | _colorPaletteIndex = 0 |
| _color_code = self._colorPalette[self._colorPaletteIndex]._color_code | |
Class holding a color palette (a set of colors).
| None __init__ | ( | self, | |
| *Any | args, | ||
| **Any | kwargs ) |
In order to create a color palette, please refer to the class methods.
| NotPossibleException | If the class cannot be initialized by default. |
Reimplemented from Color.
| int color_code | ( | self | ) |
Get the next color of the palette as an integer.
Reimplemented from Color.
| ColorPalette create_from_colors | ( | cls, | |
| *Color | args ) |
Create a pallet from a number of Colors.
| args | Comma separated Colors. |
| ColorPalette create_from_palette_constant | ( | cls, | |
| ColorPaletteConstant | color_palette_constant, | ||
| int | num_bits_per_pixel = 8 ) |
Create a pallet with a specific number of colors.
The colors in the palett are
| color_palette_constant | A ColorPaletteConstant. |
| num_bits_per_pixel | Number of bits per pixel. Defaults to 8. |
| tuple[int, int, int] rgb | ( | self | ) |
Get the next color of the palette as a tuple with the red, green and blue values.
Reimplemented from Color.
|
protected |