adjust_lightness

adjust_lightness#

zeroheliumkit.src.plotting.adjust_lightness(color: str, amount: float = 0.5) tuple[source]#

Adjusts the lightness of a given color and converts it to hexidecimal format.

Parameters:
  • color (str) – The color to adjust. Can be a named color or a hexadecimal color code.

  • amount (float, optional) – The amount by which to adjust the lightness. Defaults to 0.5.

Returns:

The adjusted color in RGB format.

Return type:

tuple