1. 程式人生 > >很大的 玫瑰花

很大的 玫瑰花

import es2017 ges png circle 技術分享 bsp 玫瑰花 eth

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()

技術分享

很大的 玫瑰花