code: def newLayer(self, name, color=None):
          
          name = normalizers.normalizeLayerName(name)
          if name in self.layerOrder:
              layer = self.getLayer(name)
              if color is not None:
                  layer.color = color
              return layer
          if color is not None:
              color = normalizers.normalizeColor(color)
          layer = self._newLayer(name=name, color=color)
          self._setFontInLayer(layer)
          return layer
docs: Make a new layer with **name** and **color**.
          **name** must be a :ref:`type-string` and
          **color** must be a :ref:`type-color` or ``None``.
  
              >>> layer = font.newLayer("My Layer 3")
  
          The will return the newly created
          :class:`BaseLayer`.