绘制玫瑰花

import turtle as t
t.begin_fill()
t.fillcolor("red")

t.setup(800,600,0,0)
t.speed(5)
t.penup()
t.goto(-70,180)
t.pendown()
t.circle(20,45)
t.circle(20,90)
t.circle(20,100)
t.circle(40,100)
t.circle(30,100)
t.circle(60,180)
t.circle(60,60)
t.right(180)
t.fd(60)
t.left(120)
t.circle(150,100)
t.left(30)
t.circle(150,100)
t.left(100)
t.fd(70)
t.penup()
t.goto(-70,180)
t.pendown()
t.end_fill()
t.penup()
t.goto(-38,0)
t.pendown()
t.left(90)


t.pensize(5)
t.circle(-120,75)
t.circle(120,75)
t.pensize(1)

t.begin_fill()
t.fillcolor("green")

t.penup()
t.goto(-2,-90)
t.pendown()
t.left(180)
t.circle(50,75)
t.circle(-50,75)
t.left(160)
t.circle(100,76)
t.penup()
t.goto(-2,-90)
t.pendown()
t.end_fill()
t.begin_fill()
t.fillcolor("green")


t.speed(5)
t.right(250)
t.penup()
t.goto(-35,-180)
t.pendown()
t.left(180)
t.circle(50,75)
t.circle(-50,75)
t.left(160)
t.circle(100,76)
t.penup()
t.goto(-35,-180)
t.pendown()
t.end_fill()

 

posted @ 2017-10-31 13:02  步佳慧  阅读(224)  评论(0编辑  收藏  举报