.. include:: ../substitutions

.. oe:namespace:: OEDepict

.. meta::
   :keywords: OEGetDefaultAtomColor

.. _OEDepict_OEGetDefaultAtomColor:


.. oe:function:: OEGetDefaultAtomColor


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

      .. oe:api::

         OESystem::OEColor OEGetDefaultAtomColor(unsigned int atomic,
                                                 unsigned int style = OEAtomColorStyle::WhiteCPK)

   .. oe:language:: python

      .. oe:api:: python

         OEGetDefaultAtomColor(atomic: int, style: int) -> OEColor

   Returns the default color associated with an atomic number for the given atom
   color style.

   *atomic*
      Atomic number.

   *style*
      This value has to be from the :oe:constns:`OEDepict::OEAtomColorStyle`
      namespace.

   .. seealso::

      :ref:`chapter_element_color` chapter
