Fork me on GitHub

Danzig The Turtle

by Landon Grindheim

10 Oct 2013

I made a drawing with a some of the functions that were developed in our turtlehack project. Pretty fun.

Here's the code:

import turtle
from turtlehack import *
import random

danzig= turtle.Turtle()

#following elliot's example and speeding things up
danzig.speed(15)

#this is mostly an experiment
for i in range(random.randint(0, 150)):
  danzig.write("GLENN")
  danzig.color(random_color())
  danzig.pendown()
  random_location(danzig, 300, 300)
  danzig.circle(random.randint(5,105))

turtle.done()

danzig

Landon is, man. Find Landon Grindheim on Twitter, Github, and on the web.
comments powered by Disqus