Draw TikTok Logo with Python Turtle

Draw TikTok Logo with Python Turtle

Introduction

This blog will discuss drawing TikTok Logo with Python Turtle, a GUI-based 2D graphics module in Python. TikTok is a trendy social media platform, primarily used for uploading and editing short dance videos, but has now become a funny, educational, and artistic video.

Basics of the Python Turtle module: https://copyassignment.com/the-beginners-guide-to-python-turtle/

Official Documentation of the Turtle module: https://docs.python.org/3/library/turtle.html

Complete Code to Draw TikTok Logo with Python Turtle

# importing the module
from turtle import *

# width of the pen
width(30)

# background of the GUI
bgcolor('black')

# red color type part of logo
up()
goto(0,0)
down()
color("#db0f3c")
left(180)
circle(50, 270)
forward(120)
left(180)
circle(50, 90)

# skyblue part of logo
up()
goto(-5, 13)
down()
color("#50ebe7")
left(180)
circle(50, 270)
forward(120)
left(180)
circle(50, 90)

# white part of logo
up()
goto(-5, 5)
down()
color("white")
left(180)
circle(50, 270)
forward(120)
left(180)
circle(50, 90)

# end of the program
done()

Output:

Output to draw TikTok Logo with Python Turtle

Breaking the Code for the TikTok Logo with Python Turtle into subparts:

1. Importing Turtle and defining the features of the pen:

# importing the module
from turtle import *

# width of the pen
width(30)

# background of the GUI
bgcolor('black')

2. Red Color Part of the Logo

# red color type part of logo
up()
goto(0,0)
down()
color("#db0f3c")
left(180)
circle(50, 270)
forward(120)
left(180)
circle(50, 90)

3. Skyblue Part of the Logo

# skyblue part of logo
up()
goto(-5, 13)
down()
color("#50ebe7")
left(180)
circle(50, 270)
forward(120)
left(180)
circle(50, 90)

4. White Part of the Logo

# white part of logo
up()
goto(-5, 5)
down()
color("white")
left(180)
circle(50, 270)
forward(120)
left(180)
circle(50, 90)

After reading this article, I hope you have learned how to draw the TikTok Logo with Python Turtle.

https://copyassignment.com/category/turtle


Also Read:

Share:

Author: Ayush Purawr