|
|
| __init__ (self, Sequence[Tuple[int, int, int]] colors) |
| |
|
ColorTriplet | __getitem__ (self, int number) |
| |
|
"Table" | __rich__ (self) |
| |
| int | match (self, Tuple[int, int, int] color) |
| |
A palette of available colors.
◆ match()
| int pip._vendor.rich.palette.Palette.match |
( |
|
self, |
|
|
Tuple[int, int, int] |
color |
|
) |
| |
Find a color from a palette that most closely matches a given color.
Args:
color (Tuple[int, int, int]): RGB components in range 0 > 255.
Returns:
int: Index of closes matching color.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/pip/_vendor/rich/palette.py