title: How to draw a transparent ellipse in Python with Pillow without outline
body: <p>I am trying to draw multiple transparent ellipses with Pillow, and I want to draw them without outlines. I can't seem to make it work without outlines.</p>
  
  <p>Here is some test code:</p>
  
  <pre><code>from PIL import Image, ImageDraw
  w,h = 100,100
  img = Image.new('RGB', (w,h),(255,255,255))
  drw = ImageDraw.Draw(img,"RGBA")
  drw.polygon([(50, 0), (100, 100), (0, 100)], (255, 0, 0, 125))
  drw.polygon([(50,100), (100, 0), (0, 0)], (0, 255, 0, 125))
  drw.ellipse([(40, 40), (w - 10, h - 10)], fill=(0,0,255,125), outline=None)
  img.save('out.png', 'PNG')
  </code></pre>
  
  <p>(from <a href="https://stackoverflow.com/a/21768191/9974152">here</a>, with some modifications)</p>
  
  <p><a href="https://i.stack.imgur.com/ygN2m.png" rel="nofollow noreferrer">Output</a></p>
  
  <p>Only the ellipse gets an outline. Why? How can I avoid this?</p>