# Created By: Ikken Sakai
# Created On: Sep 13, 2020
# this program is used to describe the picture of American Flag. 

import turtle #1 imort the modules 
wn = turtle.Screen()
wn.bgcolor("white") #2 create a background
t1 = turtle.Turtle()

t1.speed(0) 
t1.pensize(1)
t1.up()
t1.goto(-200,200) 
t1.down()

distance = 550
angle = 90

t1.forward(distance)
t1.right(angle)

distance = 300

t1.forward(distance)
t1.right(angle)

distance = 550

t1.forward(distance)
t1.right(angle)

distance = 300

t1.forward(distance)

t2 = turtle.Turtle() #3 Create a blue zone

t2.speed(0)
t2.fillcolor("darkblue")
t2.pencolor("darkblue")
t2.pensize(0.5)
t2.up()
t2.goto(-200,200)
t2.down()

t2.begin_fill()
t2.forward(230)
t2.right(90)
t2.forward(160)
t2.right(90)
t2.forward(230)
t2.right(90)
t2.forward(160)
t2.right(90)

t2.end_fill()

t3 = turtle.Turtle() #4 Create 50 stars

t3.speed(0)
t3.pencolor("white")

t3.up() # Create a star1 
t3.goto(-190,190)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star2 
t3.goto(-190,160)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star3
t3.goto(-190,130)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star4
t3.goto(-190,100)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star5
t3.goto(-190,70)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star6
t3.goto(-170,175)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star7
t3.goto(-170,145)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star8
t3.goto(-170,115)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star9
t3.goto(-170,85)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star10
t3.goto(-150,190)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star11
t3.goto(-150,160)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star12
t3.goto(-150,130)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star14
t3.goto(-150,100)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star15
t3.goto(-150,70)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star16
t3.goto(-130,175)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star17
t3.goto(-130,145)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star18
t3.goto(-130,115)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star19
t3.goto(-130,85)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star20
t3.goto(-110,190)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star21
t3.goto(-110,160)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star22
t3.goto(-110,130)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star23
t3.goto(-110,100)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star24
t3.goto(-110,70)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star25
t3.goto(-90,175)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star26
t3.goto(-90,145)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star27
t3.goto(-90,115)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star28
t3.goto(-90,85)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star1 
t3.goto(-70,190)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star29
t3.goto(-70,160)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star30
t3.goto(-70,130)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star31
t3.goto(-70,100)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star32
t3.goto(-70,70)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star33
t3.goto(-50,175)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star34
t3.goto(-50,145)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star35
t3.goto(-50,115)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star36
t3.goto(-50,85)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star37
t3.goto(-30,190)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star38
t3.goto(-30,160)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star39
t3.goto(-30,130)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star40
t3.goto(-30,100)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star41
t3.goto(-30,70)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star42
t3.goto(-10,175)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star43
t3.goto(-10,145)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star44
t3.goto(-10,115)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star45
t3.goto(-10,85)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star46
t3.goto(10,190)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star47
t3.goto(10,160)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star48
t3.goto(10,130)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star49
t3.goto(10,100)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t3.up() # Create a star50
t3.goto(10,70)
t3.down()

t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)
t3.forward(10)
t3.right(144)

t4 = turtle.Turtle() # Create the Stripe

t4.speed(0)
t4.fillcolor("red")
t4.pencolor("red")

t4.up() # Create stripe1
t4.goto(30,200)
t4.down()

distance = 320
angle = 90

t4.begin_fill()
t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)

distance = 320 

t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)
t4.end_fill()

t4.up() # Create stripe2
t4.goto(30,154)
t4.down()

distance = 320
angle = 90

t4.begin_fill()
t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)

distance = 320 

t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)
t4.end_fill()

t4.up() # Create stripe3
t4.goto(30,108)
t4.down()

distance = 320
angle = 90

t4.begin_fill()
t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)

distance = 320 

t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)
t4.end_fill()

t4.up() # Create stripe4
t4.goto(30,62)
t4.down()

distance = 320
angle = 90

t4.begin_fill()
t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)

distance = 320 

t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)
t4.end_fill()

t4.up() # Create stripe5
t4.goto(-200,17)
t4.down()

distance = 550
angle = 90

t4.begin_fill()
t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)

distance = 550

t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)
t4.end_fill()

t4.up() # Create stripe6
t4.goto(-200,-32)
t4.down()

distance = 550
angle = 90

t4.begin_fill()
t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)

distance = 550

t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)
t4.end_fill()

t4.up() # Create stripe7
t4.goto(-200,-77)
t4.down()

distance = 550
angle = 90

t4.begin_fill()
t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)

distance = 550

t4.forward(distance)
t4.right(angle)

distance = 23

t4.forward(distance)
t4.right(angle)
t4.end_fill()