首页 > 其他 > 详细

玫瑰花的绘制

时间:2017-10-28 00:16:10      阅读:311      评论:0      收藏:0      [点我收藏+]

from turtle import *
import turtle
fillcolor("red")
begin_fill()
a=40
for i in range(4):
turtle.circle(a,120)
turtle.left(60)
a=a+20
end_fill()
fillcolor("red")
begin_fill()
turtle.circle(-80,45)
turtle.penup()
turtle.circle(80,100)
turtle.pendown()
turtle.circle(80,109)
turtle.circle(-80,46)
end_fill()
turtle.left(180)
turtle.penup()
turtle.circle(80,40)
turtle.left(90)
turtle.pendown()
fillcolor("red")
begin_fill()
turtle.circle(-80,30)
turtle.right(110)
turtle.circle(100,30)
turtle.circle(-60,80)
end_fill()
turtle.right(25)
fillcolor("red")
begin_fill()
turtle.circle(-60,45)
turtle.circle(90,90)
turtle.left(122)
turtle.circle(-30,45)
turtle.circle(90,100)
turtle.circle(100,14)
end_fill()
turtle.left(80)
turtle.penup()
turtle.fd(160)
turtle.pendown()
turtle.left(120)
turtle.circle(90,20)
turtle.right(60)
turtle.penup()
turtle.fd(44)
turtle.pendown()
turtle.right(30)
fillcolor("red")
begin_fill()
turtle.circle(-90,20)
turtle.left(120)
turtle.circle(80,30)
turtle.penup()
turtle.left(20)
turtle.fd(136)
turtle.pendown()
turtle.right(60)
end_fill()

fillcolor("green")
begin_fill()
turtle.circle(200,20)
turtle.circle(-300,20)
turtle.circle(400,20)
turtle.left(30)
turtle.circle(5,120)
turtle.left(30)
turtle.circle(-400,20)
turtle.circle(300,20)
turtle.circle(-200,21)
end_fill()

turtle.penup()
turtle.left(180)
turtle.circle(200,20)
turtle.circle(-300,10)
turtle.left(100)
turtle.pendown()

fillcolor("green")
begin_fill()
turtle.circle(-300,4)
turtle.left(60)
turtle.circle(-80,120)
turtle.circle(30,45)
turtle.right(160)
turtle.circle(30,45)
turtle.circle(-80,120)
turtle.right(103)
turtle.circle(-300,20)
end_fill()
turtle.penup()
turtle.left(180)
turtle.circle(300,7)
turtle.pendown()
turtle.left(90)
turtle.circle(200,5)
turtle.right(120)
turtle.penup()
turtle.fd(34)
turtle.pendown()
turtle.right(70)
turtle.circle(200,4)

turtle.left(52)
turtle.penup()
turtle.fd(98)
turtle.pendown()
turtle.left(50)

fillcolor("green")
begin_fill()
turtle.circle(-300,2)
turtle.left(60)
turtle.circle(-80,120)
turtle.circle(30,45)
turtle.right(160)
turtle.circle(30,45)
turtle.circle(-80,120)
turtle.right(103)
turtle.circle(-300,20)
end_fill()
turtle.penup()
turtle.left(180)
turtle.circle(300,7)
turtle.pendown()
turtle.left(90)
turtle.circle(200,5)
turtle.right(120)
turtle.penup()
turtle.fd(34)
turtle.pendown()
turtle.right(70)
turtle.circle(200,4)

玫瑰花的绘制

原文:http://www.cnblogs.com/Diamond-Ring/p/7745652.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!