圣诞树代码教程 圣诞树代码c语言源代码 圣诞树代码复制链接(4)
2023-03-14 来源:你乐谷
圣诞帽
seth(-20) pensize(2) penup() goto(-30, -120) pencolor("black") pendown() fillcolor("red") fd(30) circle(4, 180) fd(30) circle(4, 180) penup() goto(-25, -115) seth(75) pendown() begin_fill() for i in range(5): fd(6) right(20) seth(-10) for i in range(5): fd(8) right(15) seth(145) for i in range(5): fd(5) left(2) seth(90) for i in range(5): fd(1) left(2) seth(-90) for i in range(4): fd(4) right(6) seth(161) fd(30) end_fill() pensize(1) pencolor("black") def koc(x, y, size): pensize(2) pencolor("black") penup() goto(x, y) pendown() begin_fill() fillcolor("yellow") for i in range(5): left(72) fd(size) right(144) fd(size) end_fill()
星星
seth(-15) koc(-120, -70, 10) seth(10) koc(100, -20, 10) seth(-10) koc(10, 40, 10) seth(30) koc(-80, 60, 10) koc(100, -150, 10) koc(-140, -150, 10) koc(20, 120, 10)
袜子
python学习交流Q群:261823976 源码领取 seth(-20) pensize(2) penup() goto(-20, 80) pencolor("black") pendown() fillcolor("red") fd(25) circle(4, 180) fd(25) circle(4, 180) penup() goto(-15, 80) pendown() begin_fill() fillcolor("red") seth(-120) fd(20) seth(150) fd(5) circle(7, 180) fd(15) circle(5, 90) fd(30) seth(160) fd(18) end_fill() penup() seth(0) goto(100, -230) pendown() write("我可爱成这样,做你圣诞礼物好不好", align="right", font=("方正黄草简体", 24, "bold")) done()