Created
September 22, 2014 19:30
-
-
Save yousefamar/9890cecf7c4b2698b358 to your computer and use it in GitHub Desktop.
A old failed attempt at drawing a flower with turtle graphics
This file contains 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
# So I finally try messing with Python and what better way to try for-loops that with turtle gfx. | |
from turtle import * | |
import time | |
color("blue") | |
up() | |
goto(0,100) | |
down() | |
circle(50) | |
for i in range(36): | |
circle(10) | |
left(10) | |
forward(10) | |
if i==9: | |
color("red") | |
write("FAIL!") | |
color("blue") | |
up() | |
goto(0,100) | |
right(90) | |
down() | |
forward(50) | |
left(90) | |
for i in range(10): | |
circle(i) | |
forward(2*1) | |
up() | |
goto(0,50) | |
right(90) | |
down() | |
forward(50) | |
time.sleep(10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment