Draw-Netflix-Logo-In-Python

Draw Netflix Logo In Python

Home » Programming Language » Python » Draw Netflix Logo In Python
Draw-Netflix-Logo-In-Python
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.

Python Turtle Module

Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon in 1967.

If turtle module is not installed in your system then please install the module using mentioned command

pip install turtle

Netflix Logo In Python 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()

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().

Below is the output of Netflix logo created using python turtle module

netflix-logo-using-python

your comments are appreciated and if you wants to see your articles on this platform then please shoot a mail at this address kusingh@programmingeeksclub.com

Thanks for reading 🙂

Join Our Newsletter!

Join our newsletter to get our latest ebook "Ultimate JavaScript Cheat-Sheet", and Tips, Articles..

We don’t spam! Read our privacy policy for more info.

Join Our Newsletter!

Join our newsletter to get our latest ebook "Ultimate JavaScript Cheat-Sheet", and Tips, Articles..

We don’t spam! Read our privacy policy for more info.

Leave a Comment

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.