• Home
  • Tutorials
    • Python
    • Machine Learning
    • Pygame
    • Python Quiz
  • 100+ Projects
    • 100+ Python Projects
    • 100+ Java Projects
  • PYTHON HANDWRITTEN NOTES
    • Python Short Notes
    • Complete DSA Notes
    • Python Detailed Notes
  • Python Compiler
    • All Editors
    • Turtle Compiler
    • Online Java Compiler
    • Online C++ Compiler
    • Online C Compiler
  • Contact Us
    • About Us
    • Policy
  • Our Android Apps
    • Unlimited Python Exercises App
    • Complete Linux Commands App

CopyAssignment

We are Python language experts, a community to solve Python problems, we are a 1.2 Million community on Instagram, now here to help with our blogs.

×

Draw WhatsApp Logo Using Python Turtle

 Vatsal Rakholiya  May 17, 2022
Draw WhatsApp Logo Using Python Turtle

Introduction

In this tutorial, we’ll look at how to create a WhatsApp Logo Using Python Turtle module. Installing the turtle python package is required to build the WhatsApp logo. We may design any form of graph with the turtle module. See the complete code of the WhatsApp logo below.

Table Of Contents
  1. Introduction
    • Step 1. import turtle
    • Step 2. Setup the canvas properties.
    • Step 3. Setup the pen coordinates.
    • Step 4. Draw the first circle of 150 to draw a WhatsApp logo.
    • Step 5. Creating a triangle to the left bottom of the circle.
    • Step 6. Draw another circle size of 140 and set the color to green
    • Step 7. Creating 2nd Triangle to the left bottom of the circle.
    • Step 8. Creating a Telephone Shape.
    • Step 9. Creating a semicircle.
  2. Source code to draw WhatsApp Logo Using Python Turtle
  3. Output

Although Whatsapp is one of the most popular messaging apps used by people all over the world, I decided to do a lesson on how to draw its logo in Python today.

Step 1. import turtle

from turtle import *

Step 2. Setup the canvas properties.

speed(10)
Screen().bgcolor("black")

Here we set the pen speed and the background-color

Step 3. Setup the pen coordinates.

penup()
goto(-20,-20)
pendown()

First, we go to the location (-20,-20).

Step 4. Draw the first circle of 150 to draw a WhatsApp logo.

color("white")
begin_fill()
circle(150)
end_fill()

Here we set the circle color to white and the size of the circle is 150.

Step 5. Creating a triangle to the left bottom of the circle.

penup()
goto(-100,10)
pendown()
begin_fill()
right(165)
forward(100)
right(130)
forward(100)
end_fill()

After that, we use the penup function and go to the location(-100,10). Going in the right direction is 165 degrees and drawing forward to 100 pixels same as going in the right direction of 130 degrees and drawing forward 100 pixels.

Step 6. Draw another circle size of 140 and set the color to green

color("green")
penup()
goto(-30,-10)
pendown()
begin_fill()
right(70)
circle(140)
end_fill()

Here we create another circle of green color and the size of the circle is 140.

Step 7. Creating 2nd Triangle to the left bottom of the circle.

color("green")
penup()
goto(-100,20)
pendown()
begin_fill()
right(160)
forward(80)
right(130)
forward(90)
end_fill()

Step 8. Creating a Telephone Shape.

color("white")
penup()
goto(40,40)
pendown()
begin_fill()
right(60)
circle(140,-90)
right(30)
circle(50,-50)
left(90)
forward(40)
right(90)
forward(20)
penup()
goto(40,40)
pendown()
right(150)
circle(50,50)
left(80)
forward(40)
left(90)
forward(20)
left(98.5)
circle(95,-90)
end_fill()

Step 9. Creating a semicircle.

color("green")
width(2)
begin_fill()
circle(92,90)
end_fill()
left(135)
width(5)

Source code to draw WhatsApp Logo Using Python Turtle

from turtle import *

speed(10)
Screen().bgcolor("black")
penup()
goto(-20,-20)
pendown()
color("white")
begin_fill()
circle(150)
end_fill()

penup()
goto(-100,10)
pendown()
begin_fill()
right(165)
forward(100)
right(130)
forward(100)
end_fill()

color("green")
penup()
goto(-30,-10)
pendown()
begin_fill()
right(70)
circle(140)
end_fill()

color("green")
penup()
goto(-100,20)
pendown()
begin_fill()
right(160)
forward(80)
right(130)
forward(90)
end_fill()

color("white")
penup()
goto(40,40)
pendown()
begin_fill()
right(60)
circle(140,-90)
right(30)
circle(50,-50)
left(90)
forward(40)
right(90)
forward(20)
penup()
goto(40,40)
pendown()
right(150)
circle(50,50)
left(80)
forward(40)
left(90)
forward(20)
left(98.5)
circle(95,-90)
end_fill()

color("green")
width(2)
begin_fill()
circle(92,90)
end_fill()
left(135)
width(5)

penup()
forward(10)
pendown()
forward(60)

penup()
goto(-150,-100)
pendown()

hideturtle()

done()

Output

output to draw WhatsApp Logo Using Python Turtle

In this post, we created a WhatsApp Logo using the python turtle library. And Thank you for reading our post. Please visit copyassignment.com for more turtle lessons.


Also Read:

  • Top 25 Pattern Programs in C++
  • Currency Converter in C++
  • SQLite | CRUD Operations in Python
  • Number Guessing Game in C++
  • Image background remover in Python
  • C++ Project Structure
  • Python | Check if a string is a palindrome or not without Recursion
  • Python | Check if a number is an Armstrong Number or not using Recursion
  • Python | Check if a number is an Armstrong Number or not without using Recursion
  • Python | Shuffle a list using recursion
  • Python | Shuffle a list without recursion
  • Python | Implementing switch case using functions
  • Python function to check whether a number is perfect or not
  • Python | Find LCM using function
  • Python | Find HCF using function
  • Python | Convert the binary number to decimal without using library function
  • Python | Create a basic operations calculator(+, -, /, and x), create a separate function for each operation
  • Python | Detecting the number of local variables declared in a function
  • Python | Making a chain of function decorators (bold italic underline etc)
  • Python | Access function inside a function
  • Event Management System Project in Python
  • ATM machine program in C++
  • Python | Create a function with a pass statement
  • Python | Function to calculate the square root of a number
  • Python | A function that calculates the power of a number
  • Python | A function that accepts 2 integers and adds them and returns their sum
  • Python | Function that takes a list of integers and returns the last integer
  • Python | Return multiple values from a function
  • Python function that takes a list and returns a new list with unique elements of the first list
  • Python | Generate a random number in the range of 1 to 10 using the function
Share:
Avatar of Vatsal Rakholiya

Author: Vatsal Rakholiya

Post navigation

← Draw PUBG Logo Using Python Turtle
Draw the Shaktiman Logo using Python Turtle →

Categories

30 Days of Code allcategorites assignment c and cpp competitive programming data structures and algorithms django tutorial final year project game in python general-python gfg github-copy gui java project gui python projects how-to html css javascript project java java game projects java projects job leetcode Machine Learning ml-shorts ml ai ds project php projects programs in python project ideas pygame tutorial python-error python-short-tutorial python projects python simple programs python sqlite qna python turtle python very small program assignments tutorial web projects

Search….

SiteMap

Python

Machine Learning

Pygame

Data Structures and Algorithms(Python)

Python Turtle

Games with Python

All Blogs On-Site

Python Compiler(Interpreter)

Online Java Editor

Online C++ Editor

Online C Editor

All Editors

Services(Freelancing)

Recent Posts

  • Top 25 Pattern Programs in C++
  • Currency Converter in C++
  • SQLite | CRUD Operations in Python
  • Number Guessing Game in C++
  • Image background remover in Python

Must Read

  • 100+ Python Projects
  • 100+ Java Projects
  • Python Programs
  • JavaScript Projects
  • Java Projects
  • PHP Projects

RoadMap to Learn

  • Python
  • Java
  • JavaScript

Python Handwritten Notes

Click Here to buy now

Python Assignment Help

We also deal with Python Assignments, Homeworks, and Projects. Click Here, to get your Python work done by experts.

close button

© Copyright 2022 www.copyassignment.com. All rights reserved. Developed by copyassignment