.. # split from OEGraphemeFunctions.rst:638

.. include:: ../substitutions

.. oe:namespace:: OEGrapheme

.. meta::
   :keywords: OEDrawCastleCircle

.. oe:function:: OEDrawCastleCircle

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

      .. oe:api::

         bool OEDrawCastleCircle(OEDepict::OEImageBase& image,
                                 const OEDepict::OE2DPoint& center,
                                 double radius, const OEDepict::OEPen& pen,
                                 double patternAngle = 15.0,
                                 double patternWidthRatio = 0.20)

   .. oe:language:: python

      .. oe:api:: python

         OEDrawCastleCircle(image: OEImageBase, c: OE2DPoint, radius: float,
                            pen: OEPen, patternAngle: float = 15.0,
                            patternWidthRatio: float = 0.20) -> bool

   Draws a circle with the :oe:const:`OEGrapheme::OECircleStyle::Castle` style.

   .. _figure_draw_circle_castle:

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

      **OEDrawCastleCircle**

   *image*
     |circle_image|

   *center*
     |circle_center|

   *radius*
     |circle_radius|

   *pen*
     |circle_pen|

     See examples (A) and (B) in :ref:`Figure: OEDrawCastleCircle<figure_draw_circle_castle>`.

   *patternAngle*
     |circle_pattern_angle|

     See example (C) in :ref:`Figure: OEDrawCastleCircle<figure_draw_circle_castle>`.

   *patternWidthRatio*
     |circle_width_ratio|

     See example (D) in :ref:`Figure: OEDrawCastleCircle<figure_draw_circle_castle>`.

