Fork me on GitHub

Truly random circles

by Danielle Wingler

11 Oct 2013

This is my use of the turtlehack library. Results will vary.

This is my screen shot

This is my code:

import turtle
from turtlehack import *
import random
fido = turtle.Turtle()
canvas = turtle.Screen()
canvas = bgcolor("black")
for i in range(20):
  random_circle(fido, 3, max_size = 100)
  fido.color(random_color())
  fido.penup()
  random_location(fido, 50, 70)
  fido.pendown()
dotted_line(fido, 50, 12, random_color())
Danielle is a BSIS student. Looking forward to learning more about programming. Still exploring career paths within the information science field. Find Danielle Wingler on Twitter, Github, and on the web.
comments powered by Disqus