Netflix Logo Using Python! Source Code Included



If you are familiar with the Python Programming Language then You would know surely know about the Turtle module in Python. Turtle is a amazing module in Python using which we can create amazing animations. Turtle module is usually used to make the kids interested in learning  the Python Language. But it is not only restricted to the kids even we can use the turtle module and create some good animation. 

I have created the animation of the famous Among Us video game character. Below is the source code for creating the animation of the character. You can copy the code and try the animation.


ANIMATION


SOURCE CODE

import turtle
t = turtle.Turtle()
t.speed(3)
turtle.bgcolor("white")
t.color("white")
t.up()
t.goto(-80,50)
t.down()
t.fillcolor("black")
t.begin_fill()
t.forward(200)
t.setheading(270)
s = 360
for i in range(9):
    s = s - 10
    t.setheading(s)
    t.forward(10)

   
t.forward(180)
s = 270
for i in range(9):
    s = s - 10
    t.setheading(s)
    t.forward(10)

t.forward(200)
s = 180
for i in range(9):
    s = s - 10
    t.setheading(s)
    t.forward(10)

t.forward(180)
s = 90
for i in range(9):
    s = s - 10
    t.setheading(s)
    t.forward(10)
t.forward(30)    
t.end_fill()
t.up()
t.color("black")
t.setheading(270)
t.forward(240)
t.setheading(0)
t.down()
t.color("red")
t.fillcolor("#E50914")
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("red")
t.fillcolor("#E50914")
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("red")
t.fillcolor("red")
t.begin_fill()
t.setheading(113)
t.forward(195)
t.setheading(0)
t.forward(31)
t.setheading(293)
t.forward(196)
t.end_fill()
t.hideturtle()
turtle.done()

You can also check out my YouTube channel  where you will find more amazing videos related to the Turtle module in Python.

Feel free to contact us if you have any queries regarding the content.

Post a Comment

Feel free to contact us if you have any queries regarding the content.

Post a Comment (0)

Previous Post Next Post