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

很大的 玫瑰花

时间:2017-10-29 00:35:29      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:python   png   ima   log   bsp   pen   circle   http   fill   

 

import turtle
turtle.setup(0.75,0.75)
turtle.penup()
turtle.seth(90)
turtle.fd(220)
turtle.pendown()
turtle.fillcolor("red")
turtle.begin_fill()
turtle.seth(0)
turtle.circle(30,50)
turtle.seth(90)
turtle.circle(30,30)
turtle.seth(140)
turtle.circle(30,50)
turtle.seth(190)
turtle.circle(40,90)
turtle.seth(-30)
turtle.circle(70,90)
turtle.seth(90)
turtle.circle(55,60)
turtle.seth(140)
turtle.circle(30,10)
turtle.seth(180)
turtle.circle(120,70)
turtle.seth(-90)
turtle.fd(50)
turtle.seth(120)
turtle.fd(20)
turtle.seth(-120)
turtle.circle(160,120)
turtle.seth(20)
turtle.circle(170,110)
turtle.seth(120)
turtle.circle(50,-110)
turtle.seth(101)
turtle.fd(116)
turtle.seth(150)
turtle.circle(100,-68)
turtle.seth(-150)
turtle.penup()
#
turtle.seth(-150)
turtle.fd(34)
turtle.pendown()
turtle.seth(-150)
turtle.circle(130,100)
turtle.seth(60)
turtle.circle(100,80)
turtle.seth(-10)
turtle.circle(132,-68)
turtle.penup()
#先向下走一段
turtle.seth(-90)
turtle.fd(20)
turtle.seth(-59)
turtle.fd(240)
turtle.pendown()
turtle.end_fill()
turtle.seth(-90)
turtle.circle(200,90)
#茎叶部分
turtle.penup()
turtle.seth(150)
turtle.fd(197)
turtle.seth(-10)
turtle.pendown()
turtle.fillcolor("green")
turtle.begin_fill()
turtle.circle(70,110)
turtle.seth(-170)
turtle.circle(100,70)
turtle.seth(25)
turtle.circle(110,35)
turtle.end_fill()
turtle.seth(-100)
turtle.penup()
turtle.fd(90)
turtle.pendown()
turtle.seth(170)
turtle.fd(20)
turtle.fillcolor()
turtle.begin_fill()
turtle.circle(70,110)
turtle.seth(20)
turtle.circle(130,52)
turtle.seth(-155)
turtle.circle(200,18)
turtle.end_fill()

 技术分享

很大的 玫瑰花

标签:python   png   ima   log   bsp   pen   circle   http   fill   

原文地址:http://www.cnblogs.com/lply/p/7748605.html

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