python画和平鸽

求大佬画和平鸽的代码!!!!。。。。。。。。。。。。。

###############################################

设计 Zhang Ruilin 创建 2021-10-06 23:18

修订 2022-07-31 07:54

turtle 绘简笔画——毛笔风格衔橄榄枝的和平鸽

###############################################
import turtle as tl
tl.speed(0) # 设置最快绘图速度
tl.setup(780, 650) # 设置画面尺寸
tl.title('海龟绘图——毛笔风格衔橄榄枝的和平鸽简笔画')
tl.pu()
R = 1/3 # 设置比例因子, 用数据的1/3大小绘制
x0, y0 = R1250, R1000 # 设置位置偏移量, 使图像处于窗口中间
draw_color='green' # 定义线条颜色(绿色)
fill_color=('green') # 定义填充颜色(绿色), 即橄榄枝颜色
tl.color(draw_color, fill_color)# 设置线条颜色和填充颜色
tl.goto(R1030-x0, y0-R1040) # 移动至橄榄枝柄起点坐标
tl.pd()
tl.lt(90)
tl.begin_fill() # 橄榄枝填色开始
tl.circle(200R, 50) # 画橄榄枝柄起笔
tl.circle(345
R, 25)
tl.circle(-520R, 35)
tl.circle(-330
R, 40)
tl.rt(162)
tl.circle(550R, 55)
tl.circle(-450
R, 30)
tl.circle(-150R, 25)
tl.circle(-60
R, 95)
tl.end_fill() # 橄榄枝填色, 并终止填色模式
tl.seth(100)
tl.pu()
tl.fd(500R) # 移动到第一片橄榄枝叶
tl.lt(110)
tl.pd()
tl.begin_fill() # 第一片橄榄叶填色开始
tl.circle(170
R, 95) # 第一片橄榄枝叶
tl.lt(100)
tl.circle(170R, 55)
tl.end_fill() # 第一片橄榄叶填色, 并终止填色模式
tl.seth(170)
tl.pu()
tl.fd(100
R) # 移动到第二片橄榄枝叶
tl.lt(120)
tl.pd()
tl.begin_fill()
tl.circle(-100R, 95) # 第二片橄榄枝叶
tl.rt(75)
tl.circle(-180
R, 95)
tl.end_fill()
tl.seth(170)
tl.pu()
tl.fd(160R)
tl.lt(40)
tl.pd()
tl.begin_fill()
tl.circle(100
R, 50) # 第三片橄榄枝叶
tl.circle(170R, 60)
tl.lt(85)
tl.circle(100
R, 60)
tl.fd(110R)
tl.circle(-90
R, 20)
tl.end_fill()
tl.seth(120)
tl.pu()
tl.fd(110R)
tl.pd()
tl.begin_fill()
tl.circle(10
R, 110) # 第四片橄榄枝叶
tl.fd(100R)
tl.circle(80
R, 90)
tl.fd(20R)
tl.lt(80)
tl.circle(175
R, 40)
tl.end_fill()
tl.seth(160)
tl.pu()
tl.fd(175R)
tl.rt(150)
tl.pd()
tl.begin_fill()
tl.circle(90
R, 85) # 顶尖橄榄枝叶
tl.circle(170R, 43)
tl.lt(115)
tl.fd(100
R)
tl.circle(160R, 35)
tl.end_fill()
tl.seth(200)
tl.pu()
tl.fd(155
R)
tl.lt(140)
tl.pd()
tl.begin_fill()
tl.fd(90R)
tl.circle(-140
R, 55) # 下第一片橄榄枝叶
tl.rt(90)
tl.circle(-150R, 100)
tl.end_fill()
tl.seth(-70)
tl.pu()
tl.fd(210
R)
tl.lt(65)
tl.pd()
tl.begin_fill()
tl.fd(150R) # 下第二片橄榄枝叶
tl.circle(-90
R, 70)
tl.rt(100)
tl.fd(120R)
tl.circle(-90
R, 90)
tl.end_fill()
tl.seth(-22)
tl.pu()
tl.fd(360R)
tl.rt(110)
tl.pd()
tl.begin_fill()
tl.circle(-180
R, 80) # 下第三片橄榄枝叶
tl.rt(120)
tl.fd(90R)
tl.circle(-140
R, 60)
tl.end_fill()
tl.lt(10)
tl.pu()
tl.fd(150R)
tl.rt(100)
tl.pd()
tl.begin_fill()
tl.fd(60
R)
tl.circle(-130R, 80) # 下第四片橄榄枝叶
tl.rt(110)
tl.fd(90
R)
tl.circle(-140R, 60)
tl.end_fill()
tl.pu()
tl.fd(90
R)
tl.seth(90)
tl.pd()
tl.color('black', 'black') # 设置线条颜色和填充颜色均为黑色
tl.begin_fill()
tl.fd(10R) # 鸽头
tl.circle(-25
R, 45)
tl.fd(20R)
tl.circle(100
R, 45)
tl.circle(-120R, 70)
tl.circle(-160
R, 40)
tl.circle(-360R, 20)
tl.fd(150
R)
tl.rt(105)
tl.circle(100R, 25)
tl.rt(105)
tl.fd(135
R)
tl.circle(300R, 30)
tl.circle(120
R, 60)
tl.circle(110R, 60)
tl.rt(60)
tl.fd(70
R)
tl.lt(165)
tl.fd(80R)
tl.lt(170)
tl.end_fill()
tl.seth(60)
tl.pu()
tl.fd(70
R)
tl.lt(10)
tl.color('red') # 设置鸽眼颜色为红色
tl.pd()
tl.begin_fill()
tl.fd(20R) # 眼睛
tl.circle(-35
R, 90)
tl.rt(65)
tl.fd(20R)
tl.end_fill()
tl.seth(223)
tl.pu()
tl.fd(200
R)
tl.color('black')
tl.pd()
tl.begin_fill()
tl.lt(165)
tl.fd(30R) # 腹部
tl.circle(-60
R, 110)
tl.fd(200R)
tl.circle(715
R, 20)
tl.circle(380R, 40)
tl.lt(120)
tl.fd(50
R)
tl.lt(58)
tl.circle(-380R, 40)
tl.circle(-710
R, 20)
tl.fd(150R)
tl.circle(65
R, 110)
tl.fd(50R)
tl.end_fill()
tl.seth(-53)
tl.pu()
tl.fd(700
R)
tl.pd()
tl.begin_fill()
tl.rt(35)
tl.circle(700R, 20) # 尾巴
tl.circle(210
R, 40)
tl.circle(38R, 90)
tl.rt(130)
tl.fd(70
R)
tl.circle(80R, 120)
tl.rt(100)
tl.fd(40
R)
tl.circle(40R, 150)
tl.rt(135)
tl.circle(150
R, 80)
tl.lt(68)
tl.circle(90R, 45)
tl.circle(-700
R, 64)
tl.lt(45)
tl.fd(50R)
tl.lt(131)
tl.circle(700
R, 73)
tl.rt(140)
tl.circle(-250R, 40)
tl.lt(90)
tl.fd(20
R)
tl.circle(-30R, 130)
tl.fd(50
R)
tl.lt(110)
tl.circle(-70R, 120)
tl.fd(90
R)
tl.lt(120)
tl.circle(-50R, 105)
tl.circle(-400
R, 20)
tl.end_fill()
tl.seth(93.5)
tl.pu()
tl.fd(590R)
tl.lt(85)
tl.pd()
tl.begin_fill()
tl.circle(-56
R, 90) # 前翅膀
tl.circle(-160R, 50)
tl.circle(-700
R, 20)
tl.circle(900R, 45)
tl.circle(100
R, 20)
tl.circle(-100R, 30)
tl.rt(90)
tl.circle(-100
R, 51)
tl.circle(-470R, 20)
tl.lt(150)
tl.circle(-50
R, 150)
tl.circle(-400R, 12)
tl.circle(-800
R, 10)
tl.lt(150)
tl.circle(-170R, 15)
tl.rt(100)
tl.circle(-150
R, 35)
tl.fd(90R)
tl.lt(120)
tl.circle(-60
R, 82)
tl.circle(-150R, 20)
tl.circle(-200
R, 35)
tl.lt(125)
tl.circle(-50R, 120)
tl.circle(-300
R, 20)
tl.lt(150)
tl.circle(-40R, 120)
tl.circle(-150
R, 22)
tl.circle(-300R, 23)
tl.circle(-600
R, 36)
tl.rt(90)
tl.fd(20R)
tl.rt(90)
tl.circle(580
R, 36)
tl.circle(270R, 20)
tl.circle(90
R, 40)
tl.circle(35R, 115)
tl.rt(150)
tl.fd(90
R)
tl.circle(100R, 25)
tl.circle(35
R, 115)
tl.rt(115)
tl.fd(105R)
tl.circle(100
R, 25)
tl.circle(60R, 110)
tl.rt(145)
tl.fd(105
R)
tl.circle(90R, 30)
tl.circle(35
R, 100)
tl.rt(120)
tl.fd(70R)
tl.circle(450
R, 20)
tl.circle(30R, 110)
tl.circle(300
R, 10)
tl.rt(121)
tl.circle(450R, 25)
tl.lt(130)
tl.circle(150
R, 8)
tl.circle(700R, 8)
tl.circle(-700
R, 40)
tl.fd(220R)
tl.circle(510
R, 20)
tl.circle(115R, 80)
tl.end_fill()
tl.seth(103)
tl.pu()
tl.fd(260
R)
tl.rt(50)
tl.pd()
tl.begin_fill()
tl.lt(3)
tl.circle(-780R, 18) # 后翅膀
tl.fd(150
R)
tl.circle(750R, 30)
tl.circle(-200
R, 30)
tl.rt(95)
tl.circle(-150R, 30)
tl.circle(-250
R, 30)
tl.lt(120)
tl.fd(50R)
tl.circle(-30
R, 105)
tl.circle(-200R, 20)
tl.circle(-400
R, 10)
tl.lt(140)
tl.circle(-270R, 10)
tl.rt(100)
tl.circle(-150
R, 50)
tl.circle(-4R, 150)
tl.circle(-200
R, 10)
tl.circle(25R, 120)
tl.circle(200
R, 5)
tl.rt(125)
tl.circle(800R, 5)
tl.circle(400
R, 7)
tl.circle(200R, 15)
tl.lt(90)
tl.circle(200
R, 25)
tl.rt(125)
tl.circle(400R, 20)
tl.circle(150
R, 22)
tl.lt(107)
tl.circle(80R, 35)
tl.circle(-790
R, 35)
tl.circle(780*R, 24.5)
tl.end_fill()
tl.pu()

绘制文字

tl.goto(-200, -80) # 坐标移至(-200, 250)文字中心处
tl.write('衔\n着', align='center', font=('汉仪行楷繁', 30))
tl.goto(-240, -160) # 坐标移至(-200, 250)文字中心处
tl.write('橄\n榄\n枝\n的', align='center', font=('汉仪行楷繁', 30))
tl.goto(-280, -160) # 坐标移至(-200, 250)文字中心处
tl.write('和\n平\n鸽', align='center', font=('汉仪行楷繁', 30))
tl.goto(-340,-270)
tl.write('任\n寅\n兰\n月\n瑞\n林\n制\n作\n于\n杭\n州',font=('华文行楷',16,'normal'))
tl.pensize(1) # 绘印章
tl.seth(-45)
tl.goto(-345,-300)
tl.pd()
tl.color('red') # 写标题的颜色(蓝色)
tl.circle(20,360,4) # 绘外框
tl.lt(45)
tl.fd(3)
tl.write('瑞\n林',font=('印章篆体',10,'normal'))
tl.fd(13)
tl.write('张\n印',font=('印章篆体',10,'normal'))

tl.ht()
tl.done()