class_docstr: Represent a CSS named color, provided as RGB values.
  
  Instances of this class also record the name of the created color, which
  is used to populate the Bokeh enum for named colors.
class_docstr_tok: ["Represent","a","CSS","named","color",",","provided","as","RGB","values",".","Instances","of","this","class","also","record","the","name","of","the","created","color",",","which","is","used","to","populate","the","Bokeh","enum","for","named","colors","."]
docstr: Args:
      name (str) :
          The name to associate with the color, e.g. "firebrick"
  
      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]
docstr_tok: ["Args",":","name","(","str",")",":","The","name","to","associate","with","the","color",",","e.g",".","``","firebrick","''","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","]"]
code: def __init__(self, name: str, r: int, g: int, b: int) -> None:
      """
  
      Args:
          name (str) :
              The name to associate with the color, e.g. "firebrick"
  
          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]
  
      """
      if name not in self.__all__:
          self.__all__.append(name)
          self.colors.append(self)
  
      self.name = name
      super().__init__(r, g, b)
  
file_path: bokeh/src/bokeh/colors/util.py
imports: from __future__ import annotations
  import logging
  from typing import ClassVar, Iterator
  from .color import RGB
label_desc: Use image node_id 1 to create a new NamedColor object from inherited base classes: RGB with example: obj = NamedColor(name, r, g, b)