Header Ads

Indian Flag Using Python Turtle🥰with Indian Map & Republic Day special

 

Indian Flag Using Python Turtle🥰with Indian Map & Republic Day special



Let's Start



Video Tutorial 

You can visit our YouTube channel 'Mr. Code Box' and watch the video tutorial.




Source Code


import turtle
from turtle import*

#screen for output
screen = turtle.Screen()

# Defining a turtle Instance
t = turtle.Turtle()
speed(0)

# initially penup()
t.penup()
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.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.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.color("navy")
for i in range(24):
    t.begin_fill()
    t.circle(3)
    t.end_fill()
    t.penup()
    t.forward(15)
    t.right(15)
    t.pendown()
   
# Small Blue Circle
t.penup()
t.goto(20, 0)
t.pendown()
t.begin_fill()
t.circle(20)
t.end_fill()
# Spokes
t.penup()
t.goto(0, 0)
t.pendown()
t.pensize(2)
for i in range(24):
    t.forward(60)
    t.backward(60)
    t.left(15)
   
#to hold the
#output window
turtle.done()



Output 


Output is not available you can see it on our youtube channel 'Mr code box' please go to our Youtube channel!......








Tags

python turtle, Indian flag, drawing Indian flag using python, python turtle tutorial, making Indian flag inside Indian map using python, create Indian flag design using python turtle, how to create Indian flag using turtle in python, python Indian flag, how to make Indian flag in python, python, Indian flag using python, python turtle graphics, Indian flag using python turtle, how to draw Indian flag using python turtle, how to draw Indian flag using python






































































No comments

Powered by Blogger.