Search code examples
pythonturtle-graphicspython-turtle

How do you draw an ellipse/oval in turtle graphics?


How do you draw an ellipse/oval in turtle graphics in Python? I want to be able to draw an ellipse and part of an ellipse using the circle() function or similar. I can stamp one using

turtlesize(stretch_wid=None, stretch_len=10, outline=None)

But I don't want it to be color filled.


Solution

  • You can use shapesize() function of turtle to make an ellipse.

    shape("circle")
    shapesize(5,4,1)
    fillcolor("white")