Fork me on GitHub

The Revenge of the Turtle

by Erin Holmes

11 Oct 2013

Ta Da!

import turtle
import turtlehack

edward = turtle.Turtle()
edward.pensize(3)

for i in range(48):
  mycolor = turtlehack.random_color()
  x = edward.xcor()
  y = edward.ycor()
  turtlehack.dotted_line(edward, 10, 5, mycolor)
  turtlehack.n_sided_polygon(edward, 6, mycolor, 3, 25)
  edward.penup()
  y = y + 1
  x = x + 1
  edward.setpos(x,y)
  edward.pendown()

turtle.done()  

Erin's Second Turtle

Erin is a second year MSIS student and is trying her best at life! She hopes to be a git rockstar in about 3 months! Find Erin Holmes on Twitter, Github, and on the web.
comments powered by Disqus