用turtle画空心字母B
本帖最后由 Forpyst 于 2022-12-11 20:39 编辑不知道怎么绘制空心字母,希望可以得到帮助。感谢!
样式图片发不出来{:10_266:} ,大概描述就是无填充、有轮廓、有一个向右下偏移的阴影(阴影可以有,也可以没有)
感谢感谢! https://cn.bing.com/images/search?view=detailV2&ccid=pENqkqNv&id=5B17796B235CD1FE7B0A8335BB2A4E385F8A40AC&thid=OIP.pENqkqNvALQP01h9n8IXYAAAAA&mediaurl=https%3a%2f%2fts1.cn.mm.bing.net%2fth%2fid%2fR-C.a4436a92a36f00b40fd3587d9fc21760%3frik%3drECKXzhOKrs1gw%26riu%3dhttp%253a%252f%252fbpic.588ku.com%252fart_pic%252f18%252f04%252f09%252fcd007b0608c562c12d3c0c319ae6df5e.jpg!%252ffw%252f254%252fquality%252f90%252funsharp%252ftrue%252fcompress%252ftrue%26ehk%3dpcYS5fGPyjWcmhfFa2yctlI7edxE4TLSJQRxWEeZUJw%253d%26risl%3d%26pid%3dImgRaw%26r%3d0&exph=254&expw=254&q=%e7%a9%ba%e5%bf%83%e5%ad%97%e6%af%8d%e5%9b%be%e7%89%87&simid=608049472648656958&FORM=IRPRST&ck=649CF3A9F9B366BECCA9CEA42CE4B584&selectedIndex=57 本帖最后由 tommyyu 于 2022-12-12 08:29 编辑
import turtle
turtle.setpos(0, 0)
turtle.up()
turtle.setpos(10, -10)
turtle.setpos(10, -130)
turtle.down()
turtle.pencolor('gray63')
turtle.pensize(20)
turtle.setpos(10, 90)
turtle.setpos(50, 90)
turtle.circle(-50, 180)
turtle.setpos(10, -10)
turtle.left(180)
turtle.setpos(50, -10)
turtle.circle(-60, 180)
turtle.setpos(10, -130)
turtle.pencolor('black')
turtle.up()
turtle.left(180)
turtle.setpos(0, 0)
turtle.setpos(0, -120)
turtle.down()
turtle.pensize(10)
turtle.setpos(0, 100)
turtle.setpos(40, 100)
turtle.circle(-50, 180)
turtle.setpos(0, 0)
turtle.left(180)
turtle.setpos(40, 0)
turtle.circle(-60, 180)
turtle.setpos(0, -120)
tommyyu 发表于 2022-12-12 08:21
十分有帮助,感谢帮助和回复啦
页:
[1]