怎么将颜色填充到整个形状里 急需 求求了

img

img


这个颜色总是漏出来 不能填完整 急需解决方案 帮忙看一看 就这么简单

先画整个形状的外轮廓,填充色之后再画其他线条

你题目的解答代码如下:


from turtle import *
colormode(255)
color((63,57,37),(238,234,197))

penup()
goto(70,0)
pendown()

begin_fill()
seth(80)
fd(200)
seth(120)
fd(70)
seth(180)
fd(10)
seth(-140)
fd(80)
seth(95)
fd(-207)
end_fill()

penup()
goto(0,0)
seth(0)
pendown()

fd(80)
seth(180)
fd(20)
seth(80)
fd(200)
seth(120)
fd(70)
penup()
for i in range(11):
    goto(60,0)
    pendown()
    seth(80)
    fd(20*i)
    seth(0)
    fd(7)
    fd(-7)
    penup()
mainloop()

img

如有帮助,请点击我的回答下方的【采纳该答案】按钮帮忙采纳下,谢谢!

img

turtle.fillcolor

您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!
PS:问答VIP年卡 【限时加赠:IT技术图书免费领】,了解详情>>> https://vip.csdn.net/askvip?utm_source=1146287632