DEV Community

Cover image for Draw Netflix Logo In Python
Kuldeep Singh
Kuldeep Singh

Posted on • Originally published at programmingeeksclub.com

Draw Netflix Logo In Python

In this article I’ll explain you how you can draw Netflix logo using python’s turtle module.

We are all familiar with Netflix, Netflix is one of the most popular OTT platform to watch web series and movies , Nowadays Netflix also producing their own shows and movies, can we said production house and it generates lots of content.

Before writing any code if don’t have any idea about what turtle is please checkout Python Turtle.

Below is the code:

import turtle

t = turtle.Turtle()
t.speed(5)
turtle.bgcolor("black")
turtle.title('Netflix Logo In Python')

t.color("#b1060f")
t.fillcolor("#b1060f")
t.begin_fill()
t.forward(30)
t.setheading(90)
t.forward(180)
t.setheading(180)
t.forward(30)
t.setheading(270)
t.forward(180)
t.end_fill()
t.setheading(0)
t.up()
t.forward(75)
t.down()

t.color("#b1060f")
t.fillcolor("#b1060f")
t.begin_fill()
t.forward(30)
t.setheading(90)
t.forward(180)
t.setheading(180)
t.forward(30)
t.setheading(270)
t.forward(180)
t.end_fill()

t.color("#e50914")
t.fillcolor("#e50914")
t.begin_fill()
t.setheading(112)
t.forward(194)
t.setheading(0)
t.forward(30)
t.setheading(292)
t.forward(195)
t.end_fill()
t.hideturtle()


turtle.done()
Enter fullscreen mode Exit fullscreen mode

As you can see the code first we have imported the turtle module in our python file, then we’ve called Turtle() function so all drawing can be possible, in next we’ve added speed of drawing we can do speed lower and higher as well for us 5 speed in best, In next we have added color to our window which going to open when we are going to run our code, In next we’ve added title of our window which is Netflix Logo In Python.

Rest of the code is mainly focused on drawing the Netflix logo, and in last we’ve used turtle.done().

Draw Netflix Logo In Python - Programming Geeks Club

In this article you'll learn how you can draw Netflix logo in Python using Python's Turtle module, which makes drawing things simple and fun.

favicon programmingeeksclub.com

This article is originally posted on programmingeeksclub.com

My Personal Blogging Website : Programming Geeks Club
My Facebook Page : Programming Geeks Club
My Telegram Channel : Programming Geeks Club
My Twitter Account : Kuldeep Singh
My Youtube Channel: Programming Geeks Club

Latest comments (0)