import turtle as t
#初始化
t.title("棒棒糖")
t.bgcolor("light blue")
t.speed(0)
t.pensize(25)
t.shape("turtle")
#棒子描边
t.penup()
t.goto(0,100)
t.pendown()
t.color("#eff686")
t.goto(-100,-100)
#棒子
t.pensize(15)
t.color("#c47b31")
t.goto(0,100)
#糖……描边
t.pensize(95)
t.color("#eff686")
t.dot()
#糖……
t.pensize(90)
t.color("pink")
t.dot()
#螺旋
t.pensize(5)
t.pencolor("#edf9f0")
for i in range(7):
t.circle(10+10*i,160)
#93543d
t.seth(0)
t.penup()
t.goto(-150,-200)
t.pendown()
t.color("#5bc678")
t.write("棒棒糖~੭*ˊᵕˋ੭*ଘ",True,font=("华文彩云",20,"normal"))
turtle库画棒棒糖
最新推荐文章于 2022-08-22 09:02:23 发布