Featured Post

Python Turtle - Draw Latvia National Flag In Python Turtle Graphics By #BKTutorial

 




Source Code:

#Latvian Flag

import turtle
t=turtle
t.title("Latvian Flag")
t.speed(1)
t.setup(800, 500)

# Move to start position
t.penup()
t.goto(-400, 250)
t.pendown()

t.color("darkred")
t.begin_fill()
t.forward(800)
t.right(90)
t.forward(167)
t.right(90)
t.forward(800)
t.end_fill()

t.color("white")
t.begin_fill()
t.left(90)
t.forward(167)

t.color("darkred")
t.begin_fill()
t.forward(167)
t.left(90)
t.forward(800)
t.left(90)
t.forward(167)
t.end_fill()

t.hideturtle()



Comments