"""The red, green, and blue components of a color."""
:
"""Red component in 0 to 255 range."""
:
"""Green component in 0 to 255 range."""
:
"""Blue component in 0 to 255 range."""
"""get the color triplet in CSS style."""
, , =
return f
"""The color in RGB format.
Returns:
str: An rgb color, e.g. ``"rgb(100,23,255)"``.
"""
, , =
return f
"""Convert components into floats between 0 and 1.
Returns:
Tuple[float, float, float]: A tuple of three normalized colour components.
"""
, , =
return / 255.0, / 255.0, / 255.0