How was this Python Turtle graphic made?
<p>My friend showed me this amazing image that she made using Python's inbuilt <a href="https://docs.python.org/2/library/turtle.html" rel="nofollow">Turtle module</a> and challenged me to find out how it was made. She gave me one hint: the image was produced with 10 lines of code. </p>

<p><img src="http://i.imgur.com/M8c7BiP.jpg" alt="10 Line Turtle Graphic"></p>

<p>From my question you probably already know that I have no clue. I've tried a whole heap of things, but I don't know how she made a filled in circle with <em>such</em> detailed patterns in only 10 lines. I've given up on figuring it out myself, and my friend won't tell me, so anyone who can produce 10 lines that make a similar image gets all the credit for figuring it out :P</p>

<p>Note: I'm not sure if this is appropriate for StackOverflow, so I'm happy to ask elsewhere (let me know), but this <em>was</em> made using Python code, so I thought someone on a programming forum might have the experience to work it out.</p>

<p>After some tuning, I find this, which, I think, is very close to the image, with exact 10 lines.</p>

<pre><code>import turtle
bob = turtle.Turtle()
bob.speed(0)
for i in range(632):
    bob.forward(200)
    bob.right(1)
    bob.forward(100)
    bob.setpos(0,0)
    bob.left(1.57)
turtle.done()
</code></pre>

<p><a href="http://i.stack.imgur.com/5c48a.png" rel="nofollow"><img src="http://i.stack.imgur.com/5c48a.png" alt="first try"></a></p>

<p><strong>Edit:</strong> There are more, draw with a single line, get this, which I have not expected:</p>

<pre><code>import turtle
bob = turtle.Turtle()
bob.speed(0)
for i in range(1080):
    bob.forward(300)
    bob.setpos(0,0)
    bob.left(0.33333)
turtle.done()
</code></pre>

<p><a href="http://i.stack.imgur.com/lyxXT.png" rel="nofollow"><img src="http://i.stack.imgur.com/lyxXT.png" alt="draw with lines"></a>
And draw with a triangle:</p>

<pre><code>import turtle
bob = turtle.Turtle()
bob.speed(0)
for i in range(720):
    bob.forward(50)
    bob.right(19)
    bob.forward(250)
    bob.setpos(0,0)
    bob.left(19.5)
turtle.done()
</code></pre>

<p><a href="http://i.stack.imgur.com/ykUIy.png" rel="nofollow"><img src="http://i.stack.imgur.com/ykUIy.png" alt="draw with triangles"></a></p>

python graphics turtle-graphics