Creating a Lord Shiva drawing using Python code – @codelearning77 #python #pythonturtlegraphics

Posted by

Lord Shiva Drawing in Python Code

Har Har Mahadev – Lord Shiva Drawing

Lord Shiva, also known as Mahadev, is one of the principal deities of Hinduism. He is worshipped as the supreme god and the creator, preserver, and destroyer of the universe. In this article, we will create a drawing of Lord Shiva using Python code and the Turtle graphics library.

Python Code for Drawing Lord Shiva


import turtle

t = turtle.Turtle()
t.speed(0)

# Drawing the face of Lord Shiva
t.circle(100) # Head
t.penup()
t.goto(0, 50)
t.pendown()
t.circle(70) # Eyes

# Drawing the body of Lord Shiva
t.penup()
t.goto(0, -100)
t.pendown()
t.circle(150) # Body

# Drawing the trishul (trident) of Lord Shiva
t.penup()
t.goto(50, -100)
t.pendown()
t.setheading(60)
t.forward(100)
t.setheading(-90)
t.forward(100)
t.setheading(60)
t.forward(50)

# Drawing the damru (drum) of Lord Shiva
t.penup()
t.goto(-50, -100)
t.pendown()
t.setheading(120)
t.forward(50)
t.setheading(-150)
t.circle(30, -150)

turtle.done()

Run the above Python code in a Python environment that supports Turtle graphics, and you will see a beautiful drawing of Lord Shiva with a trident and a drum. This drawing is a simple representation of the powerful and divine form of Lord Shiva.

Har Har Mahadev! Om Namah Shivaya!

0 0 votes
Article Rating
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@karthikchanagani6529
5 months ago

code please

@RahulKumar-0311
5 months ago

Bhai source code please