.. # split from OEGraphemeFunctions.rst:415

.. include:: ../substitutions

.. oe:namespace:: OEGrapheme

.. meta::
   :keywords: OEDrawAlphaRainbowCircle

.. oe:function:: OEDrawAlphaRainbowCircle

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

      .. oe:api::

         bool OEDrawAlphaRainbowCircle(OEDepict::OEImageBase& image,
                                       const OEDepict::OE2DPoint& center,
                                       double radius,
                                       const OEDepict::OEPen& pen,
                                       unsigned int patternDirection = OEPatternDirection::Outside)

   .. oe:language:: python

      .. oe:api:: python

         OEDrawAlphaRainbowCircle(image: OEImageBase, c: OE2DPoint,
                                  radius: float, pen: OEPen,
                                  patternDirection: int) -> bool

   Draws a circle with the :oe:const:`OEGrapheme::OECircleStyle::AlphaRainbow` style.
   See :ref:`Figure: OEDrawAlphaRainbowCircle<figure_draw_circle_alpha_rainbow>`.

   .. _figure_draw_circle_alpha_rainbow:

   .. figure:: ../images/OEDrawAlphaRainbowCircle.*
      :align:  center

      **OEDrawAlphaRainbowCircle**

   *image*
     |circle_image|

   *center*
     |circle_center|

   *radius*
     |circle_radius|

   *pen*
     |circle_pen|

     See example (A) and (B) in :ref:`Figure: OEDrawAlphaRainbowCircle<figure_draw_circle_alpha_rainbow>`.

   *patternDirection*
     |circle_pattern_dir|
     This value has to be from the :oe:constns:`OEGrapheme::OEPatternDirection` namespace.

     See example (C) in :ref:`Figure: OEDrawAlphaRainbowCircle<figure_draw_circle_alpha_rainbow>`.

