Posts

Showing posts with the label flag

Indian Flag Using Pyhton Turtle Graphics

Image
Indian Flag Using Pyhton Turtle Graphics  CODE from  turtle  import  Turtle, Screen from  itertools  import  cycle #screen for output screen = Screen() # Defining a turtle Instance t = Turtle() # satrting place for turtle t.speed( 1 ) t.up() t.goto(- 400 ,  250 ) t.pendown() # Orange Rectangle  #white rectangle t.color( "orange" ) t.begin_fill() t.forward( 800 ) t.right( 90 ) t.forward( 167 ) t.right( 90 ) t.forward( 800 ) t.end_fill() t.left( 90 ) t.color( "white" ) t.forward( 167 ) # Green Rectangle t.color( "green" ) t.begin_fill() t.forward( 167 ) t.left( 90 ) t.forward( 800 ) t.left( 90 ) t.forward( 167 ) t.end_fill() # Big Blue Circle t.speed( 0 ) t.penup() t.goto( 70 ,  0 ) t.pendown() t.color( "navy" ) t.begin_fill() t.circle( 70 ) t.end_fill() # Big White Circle t.penup() t.goto( 60 ,  0 ) t.pendown() t.color( "white" ) t.begin_fill() t.circle( 60 ) t.end_fill() # Mini Blue Circles t.penup() t.goto(- 57 , - 8 ) t.pendown() t.co