from turtle import * |
setup( 500 , 500 , startx = None , starty = None ) |
speed( 0 ) |
pencolor( "#339933" ) |
pensize( 10 ) |
penup() |
hideturtle() |
goto( 0 , 150 ) |
showturtle() |
pendown() |
shape(name = "classic" ) |
# 1 |
seth( - 120 ) |
for i in range ( 10 ): |
fd( 12 ) |
right( 2 ) |
penup() |
goto( 0 , 150 ) |
seth( - 60 ) |
pendown() |
for i in range ( 10 ): |
fd( 12 ) |
left( 2 ) |
seth( - 150 ) |
penup() |
fd( 10 ) |
pendown() |
for i in range ( 5 ): |
fd( 10 ) |
right( 15 ) |
seth( - 150 ) |
penup() |
fd( 8 ) |
pendown() |
for i in range ( 5 ): |
fd( 10 ) |
right( 15 ) |
seth( - 155 ) |
penup() |
fd( 5 ) |
pendown() |
for i in range ( 5 ): |
fd( 7 ) |
right( 15 ) |
# 2 |
penup() |
goto( - 55 , 34 ) |
pendown() |
seth( - 120 ) |
for i in range ( 10 ): |
fd( 8 ) |
right( 5 ) |
penup() |
goto( 50 , 35 ) |
seth( - 60 ) |
pendown() |
for i in range ( 10 ): |
fd( 8 ) |
left( 5 ) |
seth( - 120 ) |
penup() |
fd( 10 ) |
seth( - 145 ) |
pendown() |
for i in range ( 5 ): |
fd( 10 ) |
right( 15 ) |
penup() |
fd( 10 ) |
seth( - 145 ) |
pendown() |
for i in range ( 5 ): |
fd( 12 ) |
right( 15 ) |
penup() |
fd( 8 ) |
seth( - 145 ) |
pendown() |
for i in range ( 5 ): |
fd( 10 ) |
right( 15 ) |
penup() |
seth( - 155 ) |
fd( 8 ) |
pendown() |
for i in range ( 5 ): |
fd( 11 ) |
right( 15 ) |
# 3 |
penup() |
goto( - 100 , - 40 ) |
seth( - 120 ) |
pendown() |
for i in range ( 10 ): |
fd( 6 ) |
right( 3 ) |
penup() |
goto( 80 , - 39 ) |
seth( - 50 ) |
pendown() |
for i in range ( 10 ): |
fd( 6 ) |
left( 3 ) |
seth( - 155 ) |
penup() |
fd( 10 ) |
pendown() |
for i in range ( 5 ): |
fd( 8 ) |
right( 10 ) |
penup() |
fd( 8 ) |
seth( - 145 ) |
pendown() |
for i in range ( 7 ): |
fd( 8 ) |
right( 10 ) |
penup() |
fd( 8 ) |
seth( - 145 ) |
pendown() |
for i in range ( 7 ): |
fd( 7 ) |
right( 10 ) |
penup() |
fd( 8 ) |
seth( - 145 ) |
pendown() |
for i in range ( 7 ): |
fd( 7 ) |
right( 10 ) |
penup() |
fd( 8 ) |
seth( - 140 ) |
pendown() |
for i in range ( 7 ): |
fd( 6 ) |
right( 10 ) |
# 4 |
penup() |
goto( - 120 , - 95 ) |
seth( - 130 ) |
pendown() |
for i in range ( 7 ): |
fd( 10 ) |
right( 5 ) |
penup() |
goto( 100 , - 95 ) |
seth( - 50 ) |
pendown() |
for i in range ( 7 ): |
fd( 10 ) |
left( 5 ) |
penup() |
seth( - 120 ) |
fd( 10 ) |
seth( - 155 ) |
pendown() |
for i in range ( 6 ): |
fd( 8 ) |
right( 10 ) |
penup() |
seth( - 160 ) |
fd( 10 ) |
seth( - 155 ) |
pendown() |
for i in range ( 6 ): |
fd( 8 ) |
right( 10 ) |
penup() |
seth( - 160 ) |
fd( 10 ) |
seth( - 155 ) |
pendown() |
for i in range ( 6 ): |
fd( 8 ) |
right( 10 ) |
penup() |
seth( - 160 ) |
fd( 10 ) |
seth( - 160 ) |
pendown() |
for i in range ( 6 ): |
fd( 8 ) |
right( 10 ) |
penup() |
seth( - 160 ) |
fd( 10 ) |
seth( - 160 ) |
pendown() |
for i in range ( 6 ): |
fd( 8 ) |
right( 10 ) |
penup() |
seth( - 160 ) |
fd( 10 ) |
seth( - 165 ) |
pendown() |
for i in range ( 5 ): |
fd( 10 ) |
right( 11 ) |
# 5 |
penup() |
goto( - 70 , - 165 ) |
seth( - 85 ) |
pendown() |
for i in range ( 3 ): |
fd( 5 ) |
left( 3 ) |
penup() |
goto( 70 , - 165 ) |
seth( - 95 ) |
pendown() |
for i in range ( 3 ): |
fd( 5 ) |
right( 3 ) |
seth( - 170 ) |
penup() |
fd( 10 ) |
pendown() |
pendown() |
for i in range ( 10 ): |
fd( 12 ) |
right( 2 ) |
# 6 |
penup() |
goto( 70 , - 165 ) |
pendown() |
seth( - 90 ) |
pensize( 8 ) |
pencolor( "#996600" ) |
circle( - 20 , 90 ) |
penup() |
goto( 30 , - 185 ) |
pendown() |
seth( - 180 ) |
pensize( 8 ) |
pencolor( "#cc9966" ) |
fd( 40 ) |
penup() |
goto( - 5 , - 170 ) |
pendown() |
seth( - 180 ) |
pensize( 8 ) |
pencolor( "#8B4513" ) |
fd( 35 ) |
def guest(x, y, z): |
penup() |
goto(x, y) |
seth( - z) |
pendown() |
for angel in range ( 5 ): |
fd( 10 ) |
right( 10 ) |
def guet(x, y, z): |
penup() |
goto(x, y) |
seth( - z) |
pendown() |
for angel in range ( 5 ): |
fd( 10 ) |
left( 10 ) |
def qu(x, y, z): |
penup() |
goto(x, y) |
seth( - z) |
pendown() |
for angel in range ( 5 ): |
fd( 6 ) |
right( 10 ) |
seth( - 150 ) |
fd( 20 ) |
done() |