code: @Override
      public Layer removeAll()
      {
          final NFastArrayList<IPrimitive<?>> list = getChildNodes();
  
          if (null != list)
          {
              final int size = list.size();
  
              for (int i = 0; i < size; i++)
              {
                  list.get(i).detachFromLayerColorMap();
              }
          }
          super.removeAll();
  
          return this;
      }
docs: Removes all primitives from the collection. Override to ensure all primitives are removed from Layers Color Map
  <p>
  It should be noted that this operation will not have an apparent effect for an already rendered (drawn) Container.
  In other words, if the Container has already been drawn and a new primitive is added, you'll need to invoke draw() on the
  Container. This is done to enhance performance, otherwise, for every add we would have draws impacting performance.