Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
pip._vendor.rich.palette.Palette Class Reference

Public Member Functions

 __init__ (self, Sequence[Tuple[int, int, int]] colors)
 
ColorTriplet __getitem__ (self, int number)
 
"Table" __rich__ (self)
 
int match (self, Tuple[int, int, int] color)
 

Protected Attributes

 _colors
 

Detailed Description

A palette of available colors.

Member Function Documentation

◆ 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: