python turtle 画帕恰狗

rom turtle import*
pensize(10)
#画头
penup()
fd(150)
pendown()
seth(60)
circle(100,10)
circle(120,40)
circle(170,130)
circle(130,40)
circle(100,25)
seth(250)
circle(120,10)
circle(20,10)
circle(45,60)
penup()
goto(133,-70)
pendown()
seth(30)
circle(50,92)
penup()
goto(150,0)
seth(60)
circle(100,10)
circle(120,40)
circle(170,130)
seth(90)
fd(175)
pendown()
fillcolor("black")
begin_fill()
seth(250)
circle(170,52)
goto(-123.63,158.89)
seth(80)
circle(430,20)
goto(-122.59,302.95)
seth(90)
circle(12,180)
end_fill()
penup()
goto(117.83,159.95)
pendown()
begin_fill()
seth(-5)
circle(170,55)
seth(50)
circle(15,120)
seth(185)
circle(250,40)
goto(117.83,159.95)
end_fill()
#画脸
penup()
goto(10,-10)
pendown()
seth(120)
circle(11.5,120)
seth(-60)
circle(11.5,120)
end_fill()
penup()
goto(80,10)
begin_fill()
seth(100)
pendown()
circle(10,180)
seth(270)
circle(23,40)
seth(-30)
circle(13,80)
seth(80)
circle(15.5,36)
end_fill()
penup()
seth(0)
fd(20)
seth(-90)
fd(20)
seth(-90)
pendown()
Screen().colormode(255)
pencolor(255,228,245)
fillcolor(255,228,245)
begin_fill()
circle(18)
end_fill()
penup()
pencolor("black")
seth(180)
fd(170)
seth(90)
fd(25)
pendown()
fillcolor("black")
begin_fill()
seth(100)
circle(12,150)
seth(250)
circle(15,20)
circle(18,20)
circle(20,10)
circle(25,10)
circle(30,10)
seth(-30)
circle(25,10)
seth(10)
circle(15,30)
circle(20,10)
circle(25,10)
circle(10,30)
circle(8,10)
end_fill()
penup()
seth(180)
fd(50)
seth(0)
fd(25)
seth(-90)
fd(25)
seth(90)
pencolor(255,228,245)
fillcolor(255,228,245)
begin_fill()
circle(22)
end_fill()
#画手
pencolor("black")
penup()
goto(-115,-83)
pendown()
seth(100)
circle(18,180)
seth(145)
circle(16,180)
fd(5)
seth(260)
circle(40,30)
circle(15,20)
seth(-40)
circle(100,10)
circle(60,10)
circle(80,50)
circle(50,30)
circle(30,40)
seth(45)
circle(18,180)
seth(90)
circle(18,180)
seth(180)
fd(5)
penup()
seth(-90)
fd(30)
seth(0)
fd(10)
seth(90)
pendown()
pensize(5)
fillcolor(255,240,245)
begin_fill()
circle(10,180)
circle(20,90)
circle(20,90)
circle(10,180)
end_fill()
penup()
seth(155)
fd(55)
seth(-90)
fd(10)
seth(90)
pensize(3)
fillcolor(255,240,245)
pendown()
begin_fill()
circle(5)
end_fill()
penup()
seth(60)
fd(20)
seth(20)
fd(15)
seth(90)
pendown()
begin_fill()
circle(5)
end_fill()
penup()
seth(0)
fd(45)
seth(90)
pendown()
begin_fill()
circle(5)
end_fill()
penup()
seth(-30)
fd(35)
seth(90)
pendown()
begin_fill()
circle(5)
end_fill()
#画围巾
penup()
fd(15)
seth(0)
fd(10)
pendown()
pensize(10)
seth(-30)
pendown()
fillcolor(255,99,71)
begin_fill()
seth(-3)
circle(500,10)
seth(-3)
circle(500,10)
seth(90)
fd(5)
seth(225)
circle(18,100)
seth(250)
circle(25,30)
seth(185)
circle(500,5)
seth(182)
circle(500,10)
seth(178)
circle(500,6)
seth(90)
pensize(0.5)
fd(10)
fd(15)
seth(60)
circle(15,90)
seth(80)
fd(10)
end_fill()
penup()
goto(100,-120)
seth(-90)
pendown()
pensize(10)
begin_fill()
fd(40)
seth(190)
fd(45)
seth(90)
fd(45)
goto(100,-120)
end_fill()
#画帽子
penup()
goto(70,195)
seth(135)
pendown()
begin_fill()
pensize(10)
circle(120,90)
circle(15,150)
for i in range(6):
    seth(-2)
    circle(120,10)
circle(20,95)
end_fill()
penup()
goto(70,195)
seth(135)
circle(120,45)
pendown()
pensize(5)
fillcolor(188,238,104)
begin_fill()
seth(60)
circle(20,80)
circle(10,180)
seth(-110)
circle(20,40)
goto(-14.85,230.15)
end_fill()
penup()
goto(-7.96,243.93)
seth(-10)
pendown()
begin_fill()
circle(30,40)
circle(20,10)
circle(15,20)
seth(150)
circle(15,20)
circle(25,20)
circle(30,40)
goto(-7.96,243.93)
end_fill()

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值