Skip to content

Instantly share code, notes, and snippets.

@clawtros
Created August 6, 2013 00:56
Show Gist options
  • Save clawtros/6161102 to your computer and use it in GitHub Desktop.
Save clawtros/6161102 to your computer and use it in GitHub Desktop.
turtacular blueberries
import turtle
import math
turtle.clear()
turtle.setposition(0, 0)
turtle.speed("fastest")
for i in range(500):
turtle.left(math.sin(i / (2*math.pi)) * (180 / math.pi))
turtle.forward(math.sqrt(i))
turtle.right(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment