Draw Mata Durga using Python Turtle | Programming Ka Keeda

Python ke Turtle graphics library ek wonderful tool hai jo aapko simple code ka use karke amazing design aur drawings banane ki anumati deta hai. Is tutorial mein hum Turtle graphics ka use karke Mata Durga ke chehre ka ek drawing banayenge "Draw Mata Durga using Python Turtle".

Draw Mata Durga Face using Python Turtle | Programming Ka Keeda

Draw Mata Durga using Python Turtle

Introduction to Turtle Graphics

Turtle graphics programming ko bachon aur shuruaati logo ko programming se related basic concept ko sikhne ka ek popular tarika mana jata hai. Yeh kisi virtual turtle ki tarah hai jise aap aasan commands se control kar sakte hain. Turtle screen ke charo taraf ghum sakta hai aur jaise hi ye ghumta hai, wah lines bana sakti hai, aur aap sade aur saral commands se uski gati ko niyantrit kar sakte hain.

Setting up the Environment

Start karne se pahle hume apne Python environment ko set karna hoga. Jarur se dekh le ki aapke system mein Python install hai. Aap ise official Python website se download kar sakte hain.

Agla, hum Python ke sath aane wale Turtle Graphics module ka use karenge. Kisi bhi text editor ya integrated development environment (IDE) jaise IDLE ya Visual Studio Code ko kholiye.

Mata Durga ke Face ka Drawing

Hume Turtle graphics ka use karke Mata Durga ke chehre ke basic shape ko banane se shuruat karenge. Hum apko sikhne ke liye jitna hosake code ko utna simple banane ki kosis karenge.
#drawing maa durga using python turtle
from turtle import*
title("wwww.programmingkakeeda.com")
bgcolor("white")

def pos(x,y):
    penup()
    goto(x,y)
    pendown()

pos(0,200)
begin_fill()
circle(40)
color("red")
end_fill()

#left eyebrow
color("black")
pos(-30,200)
begin_fill()
right(45)
for i in range(20):
    left(3)
    back(10)
for i in range(10):
    right(3)
    back(10)
right(18)    
for i in range(13):
    left(3)
    forward(10)
for i in range(20):
    right(2)    
    forward(10)
end_fill()    

# right eyebrow
left(80)
pos(30,200)
begin_fill()
for i in range(20):
    right(3)
    forward(10)
for i in range(10):
    left(3)    
    forward(10)
left(18)    
for i in range(13):
    right(3)
    back(10)
for i in range(20):
    left(2)    
    back(10)
end_fill()    

# right eye
pos(40,150)
pensize(15)
left(10)
for i in range(20):
    right(3)
    forward(10)
for i in range(10):    
    left(3)
    forward(5)
right(3)    
for i in range(10):
    left(3)
    back(5)
for i in range(20):
    right(3)    
    back(10)
pensize(1)    
pos(130,130)
begin_fill()
circle(40)
end_fill()
color('white')
begin_fill()
pos(115,175)
circle(10)
end_fill()

# left eye
pos(-40,150)
color('black')
pensize(15)
right(25)
for i in range(20):
    left(3)
    back(10)
for i in range(10):
    right(3)    
    back(5)
left(3)    
for i in range(10):
    right(3)
    forward(5)
for i in range(20):
    left(3)    
    forward(10)
pensize(1)    
pos(-130,130)
begin_fill()
circle(40)
end_fill()
color('white')
begin_fill()
pos(-155,175)
circle(10)
end_fill()

# nose
color('black')
pos(-60,10)
right(70)
for i in range(5,12):
    pensize(i)
    left(7)
    forward(10)
for i in range(12,5,-1):
    pensize(i)    
    left(7)
    forward(10)

# lips  
color("red")  
begin_fill()
pos(-130,-90)
pensize(1)
begin_fill()
right(60)
for i in range(3):
    left(3)
    forward(5)
for i in range(10):
    left(4)    
    forward(6)
for i in range(10):
    right(10)    
    forward(7)
left(135) 
for i in range(10):
    right(10)   
    forward(7)
right(2)    
for i in range(10):
    left(4)
    forward(6)
for i in range(3):
    left(3)
    forward(5)
right(160)    
for i in range(12):
    right(3)
    forward(7.2)
left(44)    
for i in range(15):
    right(5.5)
    forward(7)
left(44)    
for i in range(12):
    right(3)
    forward(7)
end_fill()    

# lower lip
begin_fill()   
left(175)
for i in range(14):
    left(2)
    forward(5)
right(45)    
for i in range(14):
    left(7)
    forward(10)
right(45)    
for i in range(14):
    left(3)
    forward(5)
right(185)    
for i in range(7):
    left(3)
    forward(10)
right(0.6)    
for i in range(18):
    right(6)
    forward(10)
right(8)    
for i in range(7):
    left(3)
    forward(10)
end_fill()    

# nose ring 
pensize(12)
color("goldenrod")
pos(30,0)
left(120)
for i in range(47):
    right(7)
    back(10)

hideturtle()    
done()
Output:-
Draw Mata Durga Face using Python Turtle | Programming Ka Keeda

Conclusion

Python ke Turtle graphics ka use karke humne Mata Durga ke Face ka ek drawing banaya hai "Draw Mata Durga using Python Turtle". Turtle graphics ek simple aur mazedaar tarika hai programming concepts ko samajhne aur usi samay apni creativity ko janm dene ka. Aap ise istemal karke alag-alag tariko se amazing drawing banane ka anubhav kar sakte hain.

Is tutorial mein humne sirf yeh dekha hai ki Turtle graphics se aap kis tarah se Mata Durga ke chehre ka drawing bana sakte hain. Aap aage badhkar aur bhi uljhan bhari aur vistaarit design banane ke liye explore kar sakte hain, aur apne programming ke skill ko viksit kar sakte hain.
Apne creativity ko shaamil karein, colors ke saath experiment karein, aur vistaar ko sudharne ka prayas karein taki aap Mata Durga ke chehre ka ek bahut sundar aur sahi drawing bana sakein. Khush rahein aur coding ka aanand uthayein!

Humari Website: Programming ka keeda me aane ke liye apka bahut-bahut Dhanyawaad👍

एक टिप्पणी भेजें

0 टिप्पणियाँ
* Please Don't Spam Here. All the Comments are Reviewed by Admin.