#________________ WELCOME ALL OF YOU ON COMPUTER SOFT SKILLS CHANNEL __________
#..................................... INDIAN FLAG DRAWING USING PYHON TURTLE GRAPHICS .....................................
import turtle
from turtle import *
wn = turtle.Screen()
wn.setup(width=1000, height=800)
wn.title("COMPUTER SOFT SKILLS :- INDIAN FLAG DRAWING")
turtle.bgcolor('palegreen')
t = turtle.Turtle()
hideturtle()
speed(0)
t.penup()
t.goto(-200, 125)
t.pendown()
t.color("orangered")
t.begin_fill()
t.forward(400)
t.right(90)
t.forward(84)
t.right(90)
t.forward(400)
t.end_fill()
#>>>>>>>>>>>>>>>>>>>>>.
t.color("white")
t.begin_fill()
t.left(90)
t.forward(84)
t.left(90)
t.forward(400)
t.left(90)
t.forward(84)
t.left(90)
t.forward(400)
t.end_fill()
t.left(90)
t.forward(85)
#>>>>>>>>>>>>>>>>>>>>>
t.color("darkgreen")
t.begin_fill()
t.forward(84)
t.left(90)
t.forward(400)
t.left(90)
t.forward(84)
t.end_fill()
t.penup()
t.goto(35, 0)
t.pendown()
t.color("darkblue")
t.begin_fill()
t.circle(35)
t.end_fill()
t.penup()
t.goto(30, 0)
t.pendown()
t.color("white")
t.begin_fill()
t.circle(30)
t.end_fill()
t.penup()
t.goto(-27, -4)
t.pendown()
t.color("darkblue")
for i in range(24):
t.begin_fill()
t.circle(2)
t.end_fill()
t.penup()
t.forward(7)
t.right(15)
t.pendown()
t.color("darkblue")
t.penup()
t.goto(10, 0)
t.pendown()
t.begin_fill()
t.circle(10)
t.end_fill()
t.penup()
t.goto(0, 0)
t.pendown()
t.pensize(1)
for i in range(24):
t.forward(30)
t.backward(30)
t.left(15)
t.color("slategray")
t.pensize(10)
t.penup()
t.goto(-200,125)
t.right(180)
t.pendown()
t.forward(800)
turtle.done()
0 Comments