Created
August 6, 2013 00:56
-
-
Save clawtros/6161102 to your computer and use it in GitHub Desktop.
turtacular blueberries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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