.. # split from OEGraphemeFunctions.rst:777

.. include:: ../substitutions

.. oe:namespace:: OEGrapheme

.. meta::
   :keywords: OEDrawCogCircle

.. oe:function:: OEDrawCogCircle

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

      .. oe:api::

         bool OEDrawCogCircle(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

         OEDrawCogCircle(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::Cog` style.

   .. _figure_draw_circle_cog:

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

      **OEDrawCogCircle**

   *image*
     |circle_image|

   *center*
     |circle_center|

   *radius*
     |circle_radius|

   *pen*
     |circle_pen|

     See examples (A) and (B) in :ref:`Figure: OEDrawCogCircle<figure_draw_circle_cog>`.

   *patternAngle*
     |circle_pattern_angle|

     See example (C) in :ref:`Figure: OEDrawCogCircle<figure_draw_circle_cog>`.

   *patternWidthRatio*
     |circle_width_ratio|

     See example (D) in :ref:`Figure: OEDrawCogCircle<figure_draw_circle_cog>`.

