Draw Facebook Logo Using Python
Introduction
Today in this lesson, I’ll teach you how to design the Facebook Logo Using Python Turtle and code, so stick with me to the finish.
Facebook is a prominent social media network where you can post, discover friends, and do many other things, therefore I decided to provide a lesson on designing its logo in Python today.
To design the Facebook logo in Python, we will use the turtle module. Turtle is a graphical user interface framework that allows you to draw anything in Python.
Don’t be concerned if you’re unfamiliar with this library. I will teach you how to make do this and supply you with the code.
Source Code
from turtle import *
speed(10)
color("#0270d6")
Screen().bgcolor('yellow')
penup()
goto(0, 150)
pendown()
begin_fill()
forward(150)
circle(-50, 90)
forward(300)
circle(-50, 90)
forward(300)
circle(-50, 90)
forward(300)
circle(-50, 90)
forward(150)
end_fill()
color("white")
penup()
goto(140, 80)
pendown()
begin_fill()
right(180)
forward(50)
circle(80, 90)
forward(50)
right(90)
forward(80)
left(90)
forward(40)
left(90)
forward(80)
right(90)
forward(160)
left(90)
forward(55)
left(90)
forward(160)
right(90)
forward(70)
left(80)
forward(45)
left(100)
forward(80)
right(90)
forward(40)
circle(-40, 90)
forward(40)
left(90)
forward(45)
end_fill()
hideturtle()
done()
Output
Comments
Post a Comment