class_docstr: Represent colors by specifying their Red, Green, and Blue channels.
  
  Alpha values may also optionally be provided. Otherwise, alpha values
  default to 1.
class_docstr_tok: ["Represent","colors","by","specifying","their","Red",",","Green",",","and","Blue","channels",".","Alpha","values","may","also","optionally","be","provided",".","Otherwise",",","alpha","values","default","to","1","."]
docstr: Args:
      r (int) :
          The value for the red channel in [0, 255]
  
      g (int) :
          The value for the green channel in [0, 255]
  
      b (int) :
          The value for the blue channel in [0, 255]
  
      a (float, optional) :
          An alpha value for this color in [0, 1] (default: 1.0)
docstr_tok: ["Args",":","r","(","int",")",":","The","value","for","the","red","channel","in","[","0",",","255","]","g","(","int",")",":","The","value","for","the","green","channel","in","[","0",",","255","]","b","(","int",")",":","The","value","for","the","blue","channel","in","[","0",",","255","]","a","(","float",",","optional",")",":","An","alpha","value","for","this","color","in","[","0",",","1","]","(","default",":","1.0",")"]
code: def __init__(self, r: int, g: int, b: int, a: float = 1.0) -> None:
      """
  
      Args:
          r (int) :
              The value for the red channel in [0, 255]
  
          g (int) :
              The value for the green channel in [0, 255]
  
          b (int) :
              The value for the blue channel in [0, 255]
  
          a (float, optional) :
              An alpha value for this color in [0, 1] (default: 1.0)
  
      """
      self.r = r
      self.g = g
      self.b = b
      self.a = a
  
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 1 to create a new RGB object from inherited base classes: Color with example: obj = RGB(r, g, b, a)