class_docstr: A base class for representing color objects.
  
      
class_docstr_tok: ["A","base","class","for","representing","color","objects","."]
docstr: Lighten (increase the luminance) of this color.
  
  *Subclasses must implement this method.*
  
  Args:
      amount (float) :
          Amount to increase the luminance by (clamped above zero)
  
  Returns:
      Color
docstr_tok: ["Lighten","(","increase","the","luminance",")","of","this","color",".","*","Subclasses","must","implement","this","method",".","*","Args",":","amount","(","float",")",":","Amount","to","increase","the","luminance","by","(","clamped","above","zero",")","Returns",":","Color"]
code: def lighten(self, amount: float) -> Self:
      """Lighten (increase the luminance) of this color.
  
      *Subclasses must implement this method.*
  
      Args:
          amount (float) :
              Amount to increase the luminance by (clamped above zero)
  
      Returns:
          Color
  
      """
      rgb = self.to_rgb()
      h, l, s = colorsys.rgb_to_hls(
          float(rgb.r) / 255, float(rgb.g) / 255, float(rgb.b) / 255
      )
      new_l = self.clamp(l + amount, 1)
      r, g, b = colorsys.hls_to_rgb(h, new_l, s)
      rgb.r = round(r * 255)
      rgb.g = round(g * 255)
      rgb.b = round(b * 255)
      return self.from_rgb(rgb)
  
imports: from __future__ import annotations
  import logging
  import colorsys
  from abc import ABCMeta, abstractmethod
  from math import sqrt
  from re import match
  from typing import TYPE_CHECKING, Union
  from ..core.serialization import AnyRep, Serializable, Serializer
  from ..util.deprecation import deprecated
label_desc: Use image node_id 8 for calling the Color obj's underlying member method code with example usage: obj.lighten(amount) and returns: self