.. # split from OESystemFunctions.rst:1153

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEGetContourColor

.. oe:function:: OEGetContourColor

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

      .. oe:api::

         OEColor OEGetContourColor(const OEGridAbstractBase& grid,
                                   unsigned int idx)

   .. oe:language:: python

      .. oe:api:: python

         OEGetContourColor(grid: OEGridAbstractBase, idx: int) -> OEColor


   Returns the color for the contour associated with 'idx' from a 'grid'
   (:ref:`OEGridAbstractBase <OESystem_OEGridAbstractBase>`).

   .. seealso::

      * :oe:func:`OESystem::OEAddContour`
      * :oe:func:`OESystem::OEGetContourLevel`
      * :oe:func:`OESystem::OENumContours`

