玫瑰花


import turtle
turtle.setup(0.5,0.75)
turtle.fillcolor("red")
turtle.begin_fill()
turtle.left(90)
turtle.penup()
turtle.fd(100)
turtle.pendown()
print(turtle.pos())
turtle.right(90)
turtle.circle(6,180)
turtle.circle(20,70)
turtle.seth(305)
turtle.circle(20,150)
turtle.seth(150)
turtle.circle(40,80)
turtle.seth(275)
turtle.fd(23)
print(turtle.pos())
turtle.seth(140)
turtle.fd(5)
turtle.seth(250)
turtle.circle(50,120)
turtle.seth(40)
turtle.circle(65,85)
turtle.seth(240)
turtle.fd(13)
print(turtle.pos())
turtle.seth(110)
turtle.circle(72,17)
print(turtle.pos())
turtle.penup()
turtle.goto(0.00,100.00)
turtle.pendown()
turtle.end_fill()
turtle.penup()
turtle.goto(15.52,111.61)
turtle.pendown()
turtle.seth(270)
turtle.circle(-100,20)
turtle.circle(60,43)
turtle.penup()
turtle.goto(-31.12,80.21)
turtle.pendown()
turtle.circle(80,40)
turtle.circle(-30,60)
turtle.circle(100,40)
print(turtle.pos())
turtle.circle(-120,25)
print(turtle.pos())
turtle.circle(-200,20)
turtle.penup()
turtle.goto(49.27,-47.94)
turtle.pendown()
turtle.seth(20)
turtle.fd(10)
turtle.begin_fill()
turtle.color("black","green")
turtle.seth(90)
turtle.circle(-30,130)
turtle.seth(260)
turtle.circle(-35,110)
turtle.end_fill()
turtle.seth(12)
turtle.circle(70,37)
turtle.penup()
turtle.goto(75.63,-92.70)
turtle.pendown()
turtle.seth(175)
turtle.fd(10)
turtle.begin_fill()
turtle.color("black","green")
turtle.seth(120)
turtle.circle(25,130)
turtle.seth(310)
turtle.circle(27,110)
turtle.end_fill()
turtle.seth(200)
turtle.circle(-60,35)


 

 

posted on 2017-10-30 22:04  丁希慧  阅读(202)  评论(1编辑  收藏  举报