DRAW INSTAGRAM LOGO THROUGH PYTHON TURTLE

Tech Guru
0

  

Instagram Logo




Here we are going to discuss, how to draw Instagram logo image in python terminal with the help of a library named turtle.As we all know that it is the one of the most interesting library inside the python. Mainly this type of library is inbuilt with the python software.

Getting start with python : 

To get started with Python Turtle, you need to have Python installed on your computer. If you don't have it installed, click here to download it from the official Python website.You can also follow this vedio to download python inside your computer.



Code for Apple Logo : 

You can see this vedio for coding to draw the same image of Apple Logo as given above



Code for drawing the image of Instagram logo with your python turtle is given below. You can just copy it out from here and paste it into your python file. By clicking on run the programe you can definitely see the same output as shown above.

import turtle as t
t.speed(100)
t.bgcolor('#fb3958')
t.pencolor('white')
t.pensize(10)
t.penup()
t.goto(100,100)
t.pendown()
t.left(180)
def border():
    t.forward(150)
    for i in range(90):
        t.forward(1)
        t.left(1)

border()
border()
border()
border()

t.penup()
# Creating A Horizontal Line and One Diagonal Line
for i in range(90):
    t.backward(1)
    t.right(1)
t.left(90)
t.pendown()
t.forward(259)
t.penup()
t.right(180)
t.forward(85)
t.left(120)
t.pendown()
t.forward(60)
t.right(120)

# Draw another Diagonal Line
t.penup()
t.forward(100)
t.right(60)
t.pendown()
t.forward(60)

#Draw a Triangle
t.penup()
t.goto(5,-20)
t.left(60)
t.right(90)
t.pendown()
for i in range(3):
    t.forward(70)
    t.left(120)
t.hideturtle()
t.done()

Hope you had fun going through this blog and drawing a pictureof radha krishna using a few simple methods provided by python turtle.If you like this kind of drawing please share and follow your page for more such type of creative idea.

Post a Comment

0Comments
Post a Comment (0)