
    2Vh                     *    d dl mZmZ  G d de      Zy)    )
NamedTupleTuplec                       e Zd ZU dZeed<   	 eed<   	 eed<   	 edefd       Zedefd       Z	ede
eeef   fd       Zy	)
ColorTripletz/The red, green, and blue components of a color.redgreenbluereturnc                 &    | \  }}}d|d|d|dS )z#get the color triplet in CSS style.#02x selfr   r   r	   s       B/home/dcms/DCMS/lib/python3.12/site-packages/rich/color_triplet.pyhexzColorTriplet.hex   s+      UD3s)E#;tCj11    c                 &    | \  }}}d| d| d| dS )znThe color in RGB format.

        Returns:
            str: An rgb color, e.g. ``"rgb(100,23,255)"``.
        zrgb(,)r   r   s       r   rgbzColorTriplet.rgb   s+      UDcU!E7!D6++r   c                 *    | \  }}}|dz  |dz  |dz  fS )zConvert components into floats between 0 and 1.

        Returns:
            Tuple[float, float, float]: A tuple of three normalized colour components.
        g     o@r   r   s       r   
normalizedzColorTriplet.normalized   s)      UDU{EEM4%<77r   N)__name__
__module____qualname____doc__int__annotations__propertystrr   r   r   floatr   r   r   r   r   r      sx    9	H*J,
I+2S 2 2
 ,S , , 8E%"56 8 8r   r   N)typingr   r   r   r   r   r   <module>r$      s    $"8: "8r   