玫瑰花

from turtle import *
import time
setup(600,600,0,0)
speed(0)
penup()
seth(90)
fd(200)
seth(0)
pendown()
 
speed(5)
begin_fill()
fillcolor('red')
circle(50,30)
 
for i in range(10):
    fd(1)
    left(10)
 
circle(40,40)

for i in range(6):
    fd(1)
    left(3)
 
circle(80,40)
 
for i in range(20):
    fd(0.5)
    left(5)
 
circle(80,45)
 
for i in range(10):
    fd(2)
    left(1)
     
circle(80,25)
 
for i in range(20):
    fd(1)
    left(4)
 
circle(50,50)
 
time.sleep(0.1)
 
circle(120,55)
 
speed(0)
 
seth(-90)
fd(70)
 
right(150)
fd(20)
 
left(140)
circle(140,90)

left(30)
circle(160,100)
 
left(130)
fd(25)
 
penup()
right(150)
circle(40,80)
pendown()
 
left(115)
fd(60)
 
penup()
left(180)
fd(60)
pendown()
end_fill()
penup()
goto(23,-16)

left(165)
pendown()
fd(50)

# 叶 
left(90)  
fd(25)  
left(45)  
fillcolor("green")  
begin_fill()  
circle(-80,90)  
right(90)  
circle(-80,90)  
end_fill()   
right(135)  
fd(60)  
left(180)  
fd(85)  
left(90)  
fd(80)  
   
right(90)  
right(45)  
fillcolor("green")  
begin_fill()  
circle(80,90)  
left(90)  
circle(80,90)  
end_fill()  
   
left(135)  
fd(60)  
left(180)  
fd(60)  
right(90)  
circle(300,40)
hideturtle()
done()

 

posted @ 2018-04-14 13:48  褚超亮  阅读(127)  评论(0)    收藏  举报