Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
pip._vendor.rich.color_triplet.ColorTriplet Class Reference
Inheritance diagram for pip._vendor.rich.color_triplet.ColorTriplet:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.rich.color_triplet.ColorTriplet:
Collaboration graph
[legend]

Public Member Functions

str hex (self)
 
str rgb (self)
 
Tuple[float, float, float] normalized (self)
 

Static Public Attributes

int red
 
int green
 
int blue
 

Detailed Description

The red, green, and blue components of a color.

Member Function Documentation

◆ hex()

str pip._vendor.rich.color_triplet.ColorTriplet.hex (   self)
get the color triplet in CSS style.

◆ normalized()

Tuple[float, float, float] pip._vendor.rich.color_triplet.ColorTriplet.normalized (   self)
Convert components into floats between 0 and 1.

Returns:
    Tuple[float, float, float]: A tuple of three normalized colour components.

◆ rgb()

str pip._vendor.rich.color_triplet.ColorTriplet.rgb (   self)
The color in RGB format.

Returns:
    str: An rgb color, e.g. ``"rgb(100,23,255)"``.

The documentation for this class was generated from the following file: