parameters: (image, cx, cy, radius, color, transparency=0.0)
docstring: Draw a circle on an image using only numpy methods.
docstring_summary: Draw a circle on an image using only numpy methods.
docstring_tokens: Draw a circle on an image using only numpy methods .
function: def _npcircle(image, cx, cy, radius, color, transparency=0.0):
      """Draw a circle on an image using only numpy methods."""
      radius = int(radius)
      cx = int(cx)
      cy = int(cy)
      y, x = np.ogrid[-radius: radius, -radius: radius]
      index = x**2 + y**2 <= radius**2
      image[cy-radius:cy+radius, cx-radius:cx+radius][index] = (
          image[cy-radius:cy+radius, cx-radius:cx+radius][index].astype('float32') * transparency +
          np.array(color).astype('float32') * (1.0 - transparency)).astype('uint8')
function_tokens: def _npcircle ( image , cx , cy , radius , color , transparency = 0.0 ) : radius = int ( radius ) cx = int ( cx ) cy = int ( cy ) y , x = np . ogrid [ - radius : radius , - radius : radius ] index = x ** 2 + y ** 2 <= radius ** 2 image [ cy - radius : cy + radius , cx - radius : cx + radius ] [ index ] = ( image [ cy - radius : cy + radius , cx - radius : cx + radius ] [ index ] . astype ( 'float32' ) * transparency + np . array ( color ) . astype ( 'float32' ) * ( 1.0 - transparency ) ) . astype ( 'uint8' )