Fork me on GitHub

Spirograph Stop Sign

by Kyle Shaffer

09 Sep 2013

After tinkering for a while (probably too long) I wound up with this interesting accident. Below is my Turtle code.

import turtle

edward = turtle.Turtle()

edward.penup()
edward.setpos(50, 150)
edward.pendown()

for color in ['blue', 'green', 'red']:
  for radius in range(0, 100, 10):
    edward.color(color)
    edward.circle(radius)
    edward.right(45)
    edward.forward(100)

edward.penup()
edward.setpos(0, 20)
edward.pendown()
edward.write('STOP!')

turtle.done()

And below is a picture of the result.

First year MSIS student, novice Githubber, avid coffee drinker. Find Kyle Shaffer on Twitter, Github, and on the web.
comments powered by Disqus