class_docstr: This table is structured so that you can treat it like a dictionary keyed by glyph name.
  
  ``ttFont['COLR'][<glyphName>]`` will return the color layers for any glyph.
  
  ``ttFont['COLR'][<glyphName>] = <value>`` will set the color layers for any glyph.
class_docstr_tok: ["This","table","is","structured","so","that","you","can","treat","it","like","a","dictionary","keyed","by","glyph","name",".","``","ttFont","[","'COLR","'","]","[","<","glyphName",">","]","``","will","return","the","color","layers","for","any","glyph",".","``","ttFont","[","'COLR","'","]","[","<","glyphName",">","]","=","<","value",">","``","will","set","the","color","layers","for","any","glyph","."]
code: def __setitem__(self, glyphName, value):
      if not isinstance(glyphName, str):
          raise TypeError(
              f"expected str, found {type(glyphName).__name__}"
          )
      if value is not None:
          self.ColorLayers[glyphName] = value
      elif glyphName in self.ColorLayers:
          del self.ColorLayers[glyphName]
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/tables/C_O_L_R_.py
imports: from fontTools.misc.textTools import safeEval
  from .None import DefaultTable
label_desc: Use image node_id 8 for calling the table_C_O_L_R_ obj's underlying member method code with example usage: obj.__setitem__(glyphName, value) without return types