绘制玫瑰

import turtle
turtle.setup(0.5,0.75)
turtle.penup()
turtle.goto(0,100)
turtle.pd()
turtle.fillcolor("red")
turtle.begin_fill()
turtle.circle(8,190)
turtle.circle(28,50)
turtle.circle(2,100)
turtle.circle(70,25)
turtle.circle(15,180)
turtle.right(20)
turtle.circle(80,30)
turtle.circle(20,180)
turtle.right(30)
turtle.circle(90,30)
turtle.circle(30,180)
turtle.right(30)
turtle.circle(100,30)
turtle.circle(65,90)
turtle.right(10)
turtle.circle(100,10)
turtle.right(163)
turtle.fd(24)
turtle.left(150)
turtle.circle(120,81)
turtle.left(35)
turtle.circle(135,85)
turtle.left(140)
turtle.fd(23)
turtle.right(150)
turtle.circle(45,41)
turtle.left(142)
turtle.end_fill()

turtle.fd(43)
turtle.penup()
turtle.left(137)
turtle.fd(15)
turtle.right(155)
turtle.pd()
turtle.right(5)
turtle.circle(-65,60)
turtle.left(7)
turtle.circle(65,100)
turtle.left(100)

turtle.circle(33,140)

turtle.right(9)
turtle.circle(-65,75)

turtle.penup()
turtle.left(208)
turtle.fd(137)

turtle.pd()
turtle.right(50)

turtle.circle(200,20)
turtle.left(90)
turtle.fd(25)
turtle.fillcolor("green")
turtle.begin_fill()
turtle.left(58)

turtle.circle(-62,55)

turtle.circle(-62,67)
turtle.right(60)

turtle.circle(-62,65)

turtle.circle(-62,58)
turtle.end_fill()

turtle.penup()
turtle.left(73)
turtle.fd(24)
turtle.left(90)
turtle.pd()

turtle.circle(200,20)
turtle.right(3)
turtle.fd(25)
turtle.right(3)
turtle.seth(180)
turtle.right(3)
turtle.fd(23)
turtle.fillcolor("green")
turtle.begin_fill()
turtle.right(55)

turtle.circle(62,55)

turtle.circle(62,67)
turtle.left(60)

turtle.circle(62,65)

turtle.circle(62,54)
turtle.end_fill()
turtle.penup()
turtle.seth(0)
turtle.fd(23)
turtle.pd()
turtle.right(45)
turtle.fd(110)

绘制玫瑰_第1张图片

你可能感兴趣的:(绘制玫瑰)