猫史档案馆


【如何画个国旗】司马小山小教程(郭羽畅联合出品) 2

用户:司马小山66司马小山66查看:0 回复:0 评论:0 创建时间:2023-01-03T14:21:10


哈喽哈 大家好 今天我了教五角星

有人让我画个国旗 画就画吧

为了我的粉丝,拼了

开始

-----------------------------------------------

国旗轮廓

# 国旗轮廓
turtle.penup()
turtle.goto(-200,200)
turtle.pendown()
turtle.color("red","red")
turtle.begin_fill()
for i in range(2):
    turtle.forward(438)
    turtle.right(90)
    turtle.forward(292)
    turtle.right(90)
turtle.end_fill()

抄。。。

# 大五角星
turtle.penup()
turtle.goto(-170,145)
turtle.pendown()
turtle.color("yellow","yellow")
turtle.begin_fill()
for i in range(5):
    turtle.forward(50)
    turtle.right(144)
turtle.end_fill()

# 小五角星1
turtle.penup()
turtle.goto(-100,180)
turtle.setheading(305)# 设置朝向
turtle.pendown()
turtle.color("yellow","yellow")
turtle.begin_fill()
for i in range(5):
    turtle.forward(20)
    turtle.right(144)
turtle.end_fill()

# 小五角星2
turtle.penup()
turtle.goto(-85,150)
turtle.setheading(30)# 设置朝向
turtle.pendown()
turtle.color("yellow","yellow")
turtle.begin_fill()
for i in range(5):
    turtle.forward(20)
    turtle.right(144)
turtle.end_fill()

# 小五角星3
turtle.penup()
turtle.goto(-85,120)
turtle.setheading(5)# 设置朝向
turtle.pendown()
turtle.color("yellow","yellow")
turtle.begin_fill()
for i in range(5):
    turtle.forward(20)
    turtle.right(144)
turtle.end_fill()

# 小五角星4
turtle.penup()
turtle.goto(-100,100)
turtle.setheading(300)# 设置朝向
turtle.pendown()
turtle.color("yellow","yellow")
turtle.begin_fill()
for i in range(5):
    turtle.forward(20)
    turtle.right(144)
turtle.end_fill()
turtle.hideturtle()
turtle.done()

试一下

center_image

成功!!!!!!!

你 学会了吗

 

 


回复

上一页1 页 / 共 0下一页