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

画玫瑰花

时间:2017-11-01 00:02:07      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:style   span   log   .com   玫瑰花   组成   logs   image   pre   

import turtle

turtle.setup(600,600,300,200)
turtle.fillcolor("red")
turtle.penup()
turtle.left(90)
turtle.fd(50)
turtle.pendown()
turtle.begin_fill()
turtle.right(180)
turtle.circle(10,180)
turtle.circle(15,180)
turtle.circle(30,180)
turtle.circle(35,180)
turtle.right(30)
turtle.circle(80,120)
turtle.left(50)
turtle.circle(100,82)
turtle.end_fill()
turtle.begin_fill()
turtle.speed(50)
turtle.circle(15,180)
turtle.right(30)
turtle.fd(115)
turtle.left(105)
turtle.circle(110,90)
turtle.circle(35,-165)
turtle.right(230)
turtle.circle(40,-190)
turtle.right(12)
turtle.circle(85,132)
turtle.end_fill()
turtle.speed(25)
turtle.right(220)
turtle.circle(150,-120)
turtle.fillcolor("green")
turtle.speed(1)
turtle.circle(150,50)
turtle.left(90)
turtle.fd(13)
turtle.begin_fill()
turtle.speed(100)
turtle.right(30)
turtle.circle(28,120)
turtle.left(50)
turtle.circle(25,143)
turtle.end_fill()
turtle.left(90)
turtle.fd(15)
turtle.right(180)
turtle.fd(15)
turtle.right(15)
turtle.fd(15)
turtle.speed(10)
turtle.left(92)
turtle.circle(150,35)
turtle.right(90)
turtle.fd(33)
turtle.begin_fill()
turtle.right(60)
turtle.circle(38,130)
turtle.speed(5)
turtle.left(47)
turtle.circle(38,138)
turtle.end_fill()
turtle.left(115)
turtle.fd(60)
turtle.left(180)
turtle.fd(20)
turtle.right(90)
turtle.fd(13)
turtle.right(180)
turtle.fd(26)
turtle.left(180)
turtle.fd(13)
turtle.left(90)
turtle.fd(20)
turtle.left(90)
turtle.fd(9)
turtle.right(180)
turtle.fd(18)
turtle.left(180)
turtle.fd(9)
turtle.right(90)
turtle.fd(20)

技术分享

虽然画的有点丑,但是也丑出了个性。

小组成员:李春曦、李嘉俊。

 

画玫瑰花

标签:style   span   log   .com   玫瑰花   组成   logs   image   pre   

原文地址:http://www.cnblogs.com/thsoiloy/p/7764335.html

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