class_docstr: A palette of available colors.
code: def __rich__(self) -> "Table":
      from rich.color import Color
      from rich.style import Style
      from rich.text import Text
      from rich.table import Table
  
      table = Table(
          "index",
          "RGB",
          "Color",
          title="Palette",
          caption=f"{len(self._colors)} colors",
          highlight=True,
          caption_justify="right",
      )
      for index, color in enumerate(self._colors):
          table.add_row(
              str(index),
              repr(color),
              Text(
                  " " * 16, style=Style(bgcolor=Color.from_rgb(*color))
              ),
          )
      return table
  
file_path: rich/rich/palette.py
imports: from math import sqrt
  from functools import lru_cache
  from typing import Sequence, Tuple, TYPE_CHECKING
  from .color_triplet import ColorTriplet
label_desc: Use image node_id 3 for calling the Palette obj's underlying member method code with example usage: obj.__rich__() and returns: table