玫瑰花绘制

来源:转载

import turtle as tt.speed(10)t.penup()t.goto(0,200)t.pendown()t.bgcolor('red')t.setup(800,1500,0,0)t.circle(10,120)t.fd(5)t.seth(180)t.circle(30,80)t.seth(320)t.circle(45,100)t.seth(110)t.circle(50,120)t.seth(260)t.fd(50)t.circle(60,90)t.seth(190)t.circle(40,-120)t.seth(30)t.circle(100,90)t.seth(240)t.fd(40)t.seth(107)t.fd(60)t.seth(180)t.circle(30,-98)t.seth(240)t.penup()t.fd(25)t.pendown()t.seth(220)t.circle(81,50)t.circle(81,30)t.seth(170)t.circle(-130,60)t.circle(-110,25)t.seth(300)t.fd(25)t.seth(311)t.penup()t.fd(145)t.pendown()t.circle(-300,60)t.fd(80)t.seth(85)t.penup()t.fd(280)t.pendown()t.seth(10)t.circle(150,15)t.seth(80)t.fillcolor('green')t.begin_fill()t.circle(-60,100)t.end_fill()t.seth(260)t.begin_fill()t.circle(-60,100)t.end_fill()t.seth(20)t.circle(150,25)t.seth(240)t.penup()t.fd(150)t.pendown()t.seth(170)t.circle(-150,15)t.seth(110)t.begin_fill()t.circle(60,100)t.end_fill()t.seth(290)t.begin_fill()t.circle(60,100)t.end_fill()t.seth(160)t.circle(-150,20)

结组对象:孙悦、文雨

分享给朋友:
您可能感兴趣的文章:
随机阅读: