Pythondex
Turtle Python Programs

Draw Snapchat Logo Using Python

Last updated July 3, 2023 by Jarvis Silva

In this tutorial I will show you how to draw the Snapchat logo using python turtle with code, snapchat is one of the most popular Social Media platform, You can post snaps, find friends and do many things on Snapchat so today I have decided to create a tutorial on drawing its logo using python.

We will use the turtle module for this python, Turtle is a GUI library with the help of this library you can draw anything in python. 

Python Code To Draw Snapchat Logo


from turtle import *

bgcolor("yellow")

width(20)
penup()
goto(100,100)
pendown()
fillcolor("white")
begin_fill()
setheading(90)
circle(100,180)
fd(30)
lt(-110)
fd(30)
circle(25,180)
fd(20)
setheading(85)
circle(140,-60)
lt(-65)
circle(250,13)
lt(-70)
fd(15)
lt(90)
fd(52)
setheading(-28)
circle(198,54)
setheading(0)
fd(52)
lt(90)
fd(15)
lt(-70)
circle(250,13)
lt(-65)
circle(140,-60)
setheading(5)
fd(30)
circle(25,180)
fd(30)
lt(-90)
fd(30)
end_fill()

up()
goto(-19.0,-232.0)
down()

color('black')

done()

Above is the python code to draw the Snapchat logo, now let’s see how this code works in simple points.

  • The code imports the turtle module for graphics and animations.
  • The background color is set to yellow using bgcolor("yellow").
  • The pen width is set to 20 pixels using width(20).
  • The turtle’s position is set to (100, 100) using goto(100, 100).
  • The code draws a complex shape resembling a stylized sun by combining turtle movements and turns.
  • The shape is filled with white color using fillcolor("white") and begin_fill().
  • Various turtle commands such as circle, fd, lt, and setheading are used to create the desired shape.
  • The shape drawing is completed using end_fill() to fill the shape.
  • The pen is lifted up using up() to move to a new position.
  • The turtle’s position is set to (-19.0, -232.0) using goto(-19.0, -232.0).
  • The pen is lowered down using down() to continue drawing.
  • The pen color is set to black using color('black') and the code finishes drawing using done().

Now to run this program you need to have python installed on your computer, If you don’t have then follow this guide: Install and setup python on your computer or else you can use this online python compiler.

When you run the program and it will open a new window and it will start drawing the Snapchat Logo and below is the finished drawing of the logo.

Snapchat Logo Drawing

As you can see, we successfully drew the Snapchat logo using python turtle. I hope you were able to run this program successfully. 

Want more amazing turtle tutorials like this check out this: Awesome Python Turtle Codes.

Here are some more python drawing tutorials for you:

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

Thanks for reading, have a nice day 🙂