import turtle
back = turtle.Turtle()
back.speed(0)
back.penup()
back.goto(-255,175)
back.pendown()
back.begin_fill()
for x in range(4):
back.forward(500)
back.right(90)
back.forward(350)
back.right(90)
back.end_fill()
back.penup()
back.goto(245,0)
back.pendown()
back.right(-180)
back.forward(300)
back.setheading(139)
back.forward(270)
back.penup()
back.goto(-55,0)
back.pendown()
back.setheading(-139)
back.forward(270)
As you can see, I am trying to create the Philippines flag using Turtle. What is one way of colouring/ filling in inside the flag? Is there an easy way?
source https://stackoverflow.com/questions/75141651/how-to-colour-in-inside-of-an-object-easily
Comments
Post a Comment