.. oe:namespace:: OEShape

.. meta::
   :keywords: OECompressColorAtoms

.. oe:function:: OECompressColorAtoms

   .. oe:language:: c++ java csharp

      .. oe:api::

         unsigned int OECompressColorAtoms(OEChem::OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OECompressColorAtoms(mol: Union[OEGraphMol,OEQMol]) -> int

   Convert the color atoms on a molecule to an internal compressed
   form. Useful for saving space when storing pre-colored
   molecules. Use :oe:func:`OEShape::OEUncompressColorAtoms` to restore
   the actual color atoms.
