Explore

Close
Turtle Programs Share

Draw Chrome Logo Using Python Turtle With Code

Draw Chrome Logo Using Python Turtle With Code

Want to know how to draw chrome logo with turtle in python then you are at the right place today in this python tutorial I will show you how to draw chrome logo using python turtle so read till the end.

Chrome is a browser by Google. Drawing the logo of chrome in python is going to be very interesting. I will provide you the Chrome logo python code so you don’t have to do anything.

To draw chrome logo using python, we will use the turtle module or library. It is a GUI library. You can draw things with this library. 

It is a built-in python library, so you don’t have to manually install it. Now let’s see the python code to draw the chrome logo.

Code To Draw Chrome Logo Using Python Turtle


from turtle import * 
from time import sleep
colormode(255) 
red=(223, 35, 35); green=(75, 183, 75); yellow=(252, 216, 9); 
blue=(86, 146, 195)
r=120 
seth(-150) 
up() 
#-------------RED -------------
color(red) 
begin_fill() 
fd(r) 
down() 
right(90) 
circle(-r, 120) 
fd(r*3**.5) 
left(120) 
circle(2*r, 120) 
left(60) 
fd(r*3**.5)
end_fill()

#-------------Green -------------

left(180) 
color(green) 
begin_fill()
fd(r*3**.5)
left(120) 
circle(2*r, 120) 
left(60) 
fd(r*3**.5)
left(180) 
circle(-r, 120) 
end_fill() 

#-------------Yellow -------------

left(180) 
circle(r,120)
color(yellow) 
begin_fill()
circle(r, 120)
right(180) 
fd(r*3**.5)
right(60) 
circle(-2*r, 120) 
right(120) 
fd(r*3**.5)
end_fill()

#-------------Blue Circle-------------

up() 
left(98) 
fd(r/20) 
seth(60) 
color(blue) 
down() 
begin_fill()
circle(distance(0,0)) 
end_fill() 
ht() 

done()

Above is the python code to draw the chrome logo. First create a new folder, open it in a code editor, create a python file and paste the above python code.

You don’t have to install the turtle library if you have python installed because it comes preinstalled with python. If you get any errors saying turtle module is not found then use the below command to install


pip install turtle

It will install the turtle library and now you can run the program on your computer or you can use an online python compiler.

After running, it will open a new window and start drawing the chrome logo and below is the finished drawing output of this program.

Chrome Logo Python Turtle Output

As you can see we have successfully drawn the chrome logo using python, this was done using the python turtle library.

Summary

This was another python turtle tutorial, but in this we have drawn a chrome logo. I hope you found this tutorial helpful and useful.

Do share this guide with your friends and other programmers who might be interested. Feel free to browse python tutorials like this on our website.

Here are more python turtle tutorials for you:

I hope you found what you were looking for from this python tutorial. If you want more python tutorials like this, then do join our Telegram channel for future updates.

Thanks for reading, have a nice day 🙂