# `COLR`: Color table

The `COLR` table is an OpenType table.

class fontTools.ttLib.tables.C_O_L_R_.table_C_O_L_R_(tag=None)

  Bases: `DefaultTable`

  Color table

  The `COLR` table defines color presentation of outline glyphs. It must be used in concert with the `CPAL` table, which contains the color descriptors used.

  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.

  See also https://learn.microsoft.com/en-us/typography/opentype/spec/colr

  decompile(data, ttFont)
  compile(ttFont)
  toXML(writer, ttFont)
  fromXML(name, attrs, content, ttFont)
  closure_glyphs(s)
  subset_glyphs(s)

class fontTools.ttLib.tables.C_O_L_R_.LayerRecord(name=None, colorID=None)

  Bases: `object`

  toXML(writer, ttFont)
  fromXML(eltname, attrs, content, ttFont)