.. oe:namespace:: OEShape

.. meta::
   :keywords: OEHasColorAtoms

.. oe:function:: OEHasColorAtoms

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

      .. oe:api::

         bool OEHasColorAtoms(const OEChem::OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEHasColorAtoms(mol: Union[OEGraphMol,OEMol,OEQMol]) -> bool

   Returns ``true`` if the molecule has any color atoms
   attached. Note, :oe:func:`OEShape::OEHasColorAtoms` only checks for
   the existence of color atoms on the molecule, even if
   :oe:func:`OEShape::OEAddColorAtoms` did not match any substructures
   to create color atoms. Use
   :oe:func:`OEShape::OEHasPerceivedColorAtoms` if trying to determine
   whether :oe:func:`OEShape::OEAddColorAtoms` still needs to be
   called on the molecule.
