绘制玫瑰花

玫瑰花


from turtle import * setup(650,650,200,50) pensize(1) penup() seth(90) fd(250) pendown() fillcolor("red") begin_fill() seth(-30) circle(50,30) circle(10,140) seth(150) circle(70,50) circle(10,140) seth(-45) circle(70,80) circle(20,110) seth(135) circle(90,100) seth(-80) fd(60) seth(-80) circle(90,65) seth(10) circle(100,80) fd(50) seth(-160) fd(20) end_fill() seth(-150) circle(130,73) seth(90) circle(145,63) seth(-90) penup() circle(150,60) pendown() seth(-120) pensize(5) pencolor("brown") seth(-100) fd(350) penup() seth(80) fd(270) pendown() pensize(2) seth(40) fd(20) fillcolor("green") begin_fill() seth(-30) circle(90,110) seth(150) circle(90,110) end_fill() seth(-140) fd(20) seth(-100) fd(100) seth(140) fd(20) fillcolor("green") begin_fill() seth(60) circle(90,110) seth(-120) circle(90,110) end_fill() exitonclick()

 

posted @ 2017-10-24 13:43  梦瑶呀  阅读(244)  评论(0)    收藏  举报