Explore

Close
Turtle Programs Share

Draw Google Logo In Python With Code

Draw Google Logo In Python With Code

Looking to draw google logo in python programming then you are at the right place today in this tutorial I will show you how to draw google logo in python with code so read till the end of this article.

Google is a search engine, and drawing the logo of google in python is going to be very interesting. I will provide you the Google logo python code so you don’t have to do anything.

We will use the python turtle library to draw the Google logo. It is a built-in python library so you don’t have to manually install it. Now let’s see the Google logo python code.

Google Logo Python Code For Drawing


import turtle
#get the instance of turtle
t=turtle.Turtle()
#select color
t.color('#4285F4','#4285F4') ## RBG value of color
#change the pen size
t.pensize(5)
#change the drawing speed
t.speed(3)
 
t.forward(120)
t.right(90)
t.circle(-150,50)  ## first circle for red color
t.color('#0F9D58')
t.circle(-150,100)
t.color('#F4B400')
t.circle(-150,60)
t.color('#DB4437','#DB4437')
 
t.begin_fill()
t.circle(-150,100)
t.right(90)
t.forward(50)
t.right(90)
t.circle(100,100)
t.right(90)
t.forward(50)
t.end_fill()
 
t.begin_fill()
 
## second circle for yellow color
 
t.color("#F4B400","#F4B400")
t.right(180)
t.forward(50)
t.right(90)
 
t.circle(100,60)
t.right(90)
t.forward(50)
t.right(90)
t.circle(-150,60)
t.end_fill()
 
 
# third circle of green color
t.right(90)
t.forward(50)
t.right(90)
t.circle(100,60)
t.color('#0F9D58','#0F9D58')
t.begin_fill()
t.circle(100,100)
t.right(90)
t.forward(50)
t.right(90)
t.circle(-150,100)
t.right(90)
t.forward(50)
t.end_fill()
 
 
##Draw last circle
 
t.right(90)
t.circle(100,100)
t.color('#4285F4','#4285F4')
t.begin_fill()
t.circle(100,25)
t.left(115)
t.forward(65)
t.right(90)
t.forward(42)
t.right(90)
t.forward(124)
t.right(90)
t.circle(-150,50)
t.right(90)
t.forward(50)
 
t.end_fill()
t.penup()

Above is the code to draw google logo in python. Copy and paste it in a python file and run it on your computer or use an online python compiler.

After running the code it will open a new window and start drawing the Google logo and after finishing drawing below is the output you should get.

Google logo python code output

If you correctly copied and pasted, the code above is the Google logo drawing you should get.

Summary

This was a short tutorial on drawing google logo in python turtle. I hope you found this tutorial interesting and helpful.

Here are more python tutorial on drawing with turtle:

I hope you found what you were looking for and if you did do share this article with your friends and if you want more tutorials like this do join our Telegram channel.

Thanks for reading, have a nice day 🙂