class_docstr: Represents a color in terms of float values for RGBA between 0.0 and 1.0.
class_docstr_tok: ["Represents","a","color","in","terms","of","float","values","for","RGBA","between","0.0","and","1.0","."]
code: def from_name(cls, name: str):
      return {
          "aqua": cls.from_hexstr("#00ffff"),
          "black": cls.from_hexstr("#000000"),
          "blue": cls.from_hexstr("#0000ff"),
          "fuchsia": cls.from_hexstr("#ff00ff"),
          "green": cls.from_hexstr("#008000"),
          "gray": cls.from_hexstr("#808080"),
          "lime": cls.from_hexstr("#00ff00"),
          "maroon": cls.from_hexstr("#800000"),
          "navy": cls.from_hexstr("#000080"),
          "olive": cls.from_hexstr("#808000"),
          "purple": cls.from_hexstr("#800080"),
          "red": cls.from_hexstr("#ff0000"),
          "silver": cls.from_hexstr("#c0c0c0"),
          "teal": cls.from_hexstr("#008080"),
          "white": cls.from_hexstr("#ffffff"),
          "yellow": cls.from_hexstr("#ffff00"),
      }[name.lower()]
  
file_path: kubric/kubric/core/color.py
imports: import colorsys
  from typing import NamedTuple, Tuple, Union
label_desc: Use image node_id 8 for calling the Color obj's underlying member method code with example usage: obj.from_name(cls, name) and returns: dict