码迷,mamicode.com
首页 > 其他好文 > 详细

玫瑰花的绘制

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

标签:import   gre   imp   port   for   down   pen   玫瑰花   col   

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)

玫瑰花的绘制

标签:import   gre   imp   port   for   down   pen   玫瑰花   col   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!