Fork me on GitHub

Elizabeth's code post

by Elizabeth Peele

09 Sep 2013

I went really simply since I didn't have much time to explore Turtle today, so here is a pretty rainbow colored line that leads into a black circle.

#Turtledemo
import turtle
edward = turtle.Turtle()
edward.circle(100)
edward.position()
(-0.00,-0.00)

for color in ['red', 'blue', 'green', 'purple']:
   edward.color(color)
   edward.backward(50)

turtle.done()

line/circle image

*Template courtesy of http://docs.python.org/2/library/turtle.html

Elizabeth Peele is a first year MSIS at the University of North Carolina Chapel Hill. Find Elizabeth Peele on Twitter, Github, and on the web.
comments powered by Disqus