Create Mahakal Shivling Using Python Turtle

Hello doston, aaj ke is post me main aapko batane ja raha hu ki aap Python ki madat se Mahakal Shivling ki drawing(Create Mahakal Shivling Using Python Turtle) kaise bana sakte hain, to agar aap iske bare me jaanna chahte hain to is post ko aant tak padhe.
Create Mahakal Shivling Using Python Turtle

Shivling kya hai?

Shivling ko lingam, ling, shiv ling bhi kaha jata hai, yah sabse mahatvapoorn hindu devta, bhagwan shiv ka pratinidhitv karta hai jinhe pooja ke liye mandiron me rakha jata hai, hindu bhakto dyora shiv lingam ko bhagwan ki urjaa aur shamta ke pratik ke roop me pooja jata hai, log shivling ko swayam shiv ka roop mante hain, shivling ko hamesha yoni ke saath darshaya jata hai jo mata shakti (matalab mahila rachanatmak urjaa) ka pratik hai, yah nar aur maada yani ling aur yoni ki advitiya avibhajy shakti ka pratik hai jo sabhi jivan ki utpati karti hai.

Aasa mana jata hai ki Shivling ki na to koi shuruyat hai aur na hi koi aant hai aur is duniya me sabhi chije ek me mil jaengi aur ek aakarhin aakar ban jayengi, yani ling kisi bhi chij ke udbhav aur vilay ka sanket deta hai, Amarnath ka ek ling puri duniya me bahut famous hai aur iske darshan ke liye har saal hajaron se jyada shradhalu aate hain, iska nirmaan har saal shit ritu me pashchimi Himalayas ki barph se hota hai isliye ise ice lingam kaha jata hai, sardiyon ke doran gupha ke farsh par barph tapakati hai aur jamne ke baad stalagmit ka roop le leti hai, duniya ke kone-kone se bhakton ki bhari bhid yahan pooja-archana ke liye aati hai.

Create Mahakal Shivling Using Python Turtle

Is tutorial me, hum sikhenge ki python turtle ki help se ek shivling kaise banayi jati hai.
Aage badhane se pehle hume Python Turtle ke bare me thodi jaankari honi chahiye, python turtle art sundar drawing, shapes, pictures etc banane ke kaam aata hai.

Niche diye hue code me, hum from turtle import * ya import turtle as tur se turtle library import karte hain, hum kuch function ko define karte hain aur turtle ki help se sundar drawings banate hain.
  • speed(4) turtle ki speed ko niyantrit karne ke liye upayog kiya jata hai.
  • title() ka upayog window screen ka title dene ke liye kiya jata hai.
  • setup() ka use window screen ka size deside karne ke liye upayog kiya jata hai.
  • color(‘color’) shapes ko rang dene ke liye upayog kiya jata hai.
  • shape(‘turtle’) turtle ka aakar dene ke liye upayog kiya jata hai.
  • bgcolor(‘color’) background ko color dene ke liye upayog kiya jata hai.
  • pensize() turtle ko aakar dene me upayog kiya jata hai.
  • left() turtle ko left direction me move karane ke upayog ke liye kiya jata hai.
  • forward() turtle ko aage ki disha me le jane ke liye kiya jata hai.
  • backward() turtle ko piche ki disha me le jane ke liye kiya jata hai.
  • circle() circle draw karne ke liye kiya jata hai.
  • right() turtle ko right direction me move karane ke upayog ke liye kiya jata hai.
  • penup() ka tab kiya jata hai jab hum screen par kuch bhi nahi draw kar rahe ho.
  • pendown() ka tab kiya jata he jab hum screen par kuch draw kar rahe ho.
  • pencolor() turtle pen ko color dene ke upayog me kiya jata hai.
  • fillcolor() drawing ke andar color bharne ke liye upayog kiya jata hai.
  • goto() turtle ko x aur y axis me le jane ke liye kiya jata hai.
  • write() ka upayog screen me kuch bhi likhne ke liye kiya jata hai.
  • done() ka upayog window screen ko end karne aur program ko freez karne ke liye kiya jata hai.

Create Mahakal Shivling Using Python Turtle Full Program

from turtle import *
speed(4)
# hideturtle()
setup(800,600)
bgcolor('#353935')
title('Sivalling Design by Mahuley Ji')

def my_goto(x,y):
    pencolor('#4682B4')
    penup()
    goto(x,y)
    pendown()

def round_rectangle(center_x,center_y,
            width,height,cornersize):
    penup()    
    goto(center_x-width/2+cornersize,
         center_y-height/2)
    pendown()
    for _ in range(2):
        fillcolor('#4682B4')
        begin_fill()
        forward(width-2*cornersize)
        circle(cornersize,90)
        forward(height-2*cornersize)
        circle(cornersize,90)
        end_fill()

def round_rectangle(center_x,center_y,
            width,height,cornersize):
    penup()    
    goto(center_x-width/2+cornersize,
         center_y-height/2)
    pendown()
    for _ in range(2):
        pencolor("#4682B4")
        fillcolor('#4682B4')
        begin_fill()
        forward(width-2*cornersize)
        circle(cornersize,90)
        forward(height-2*cornersize)
        circle(cornersize,90)
        end_fill()

round_rectangle(0,0,200,300,80)        

fillcolor('#4682B4')
begin_fill()

goto(-35,40)
penup()
fillcolor('orange')
begin_fill()
forward(80)
left(90)
forward(10)
left(90)
forward(80)
left(90)
forward(10)
left(90)

goto(-35,80)
forward(80)
left(90)
forward(10)
left(90)
forward(80)
left(90)
forward(10)
left(90)

goto(-35,60)
forward(80)
left(90)
forward(10)
left(90)
forward(80)
left(90)
forward(10)
left(90)

pendown()
end_fill()

fillcolor('red')
begin_fill()
goto(5,50)
penup()
r=15
circle(r)
pendown()
end_fill()

penup()
goto(-150,-175)
pencolor('#4682B4')
fillcolor('#4682B4')
begin_fill()

round_rectangle(90,-111,600,70,37)
round_rectangle(90,-160,600,70,37)

penup()
goto(0, 210)
pendown()
speed(1)
color('orange')
style=('Courier',30, 'bold')
write('Om Namah Shivaya', font=style,
         align='center', move=True)

done()

Output:-

Create Mahakal Shivling Using Python Turtle

Aasha he ki ap ko humara yeh program "Create Mahakal Shivling Using Python Turtle" pasand aya hoga.
Humari Website me aane ke liye apka bahut-bahut dhanyawaad!

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

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