Design the Iconic Windows Logo with Python: A Step-by-Step Guide
Designing the iconic Windows logo with Python code is a fun and educational project for those interested in graphics programming. Let’s move on to an awesome project on how to design windows logo using python. Before getting into this we will have a python and turtle graphics library. In this case, I will use pycharm IDE.
How to install pycharm in windows: https://iterathon.tech//how-to-install-the-pycharm-in-windows/
Open New Projects
After opening a pycharm click on a new project and you can give it any name as a windows_logo. In this project.
Once you give it a name and click on the create. It takes few seconds to create the project, On the current project there are some existing files are found in ide so, delete all those files using Ctrl+A and Backspace. Now Python is ready to code before that we need one awesome python packages called turtle.
Turtle graphics
Turtle graphics is a popular way of introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzeig, Seymour Papert, and Cynthia Solomon in 1967.
After getting into the link. You have to some basics of a turtle. Install comment: pip install turtle for windows, for mac python3 -m pip install turtle.
Link to know about turtle graphics: https://docs.python.org/3/library/turtle.html
Again go to the pycharm and click terminal then paste the magical word pip install turtle. It takes few seconds to install packages. Once the package gets installed, Go to your project windows_logo.
Code
This is an easy and crazy python project to design Windows logo. Let’s further move on to the python program.
#Windows Logo
from turtle import *
speed(1)
bgcolor('black')
penup()
goto(-50,60)
pendown()
color('blue')
begin_fill()
goto (100,100)
goto (100,-100)
#Draw windows
goto(-50,-60)
goto(-50,60)
end_fill()
color('black')
goto(15,100)
#cut 2 equal parts
color('black')
width(10)
goto (15,-100)
penup()
goto(100,0)
pendown()
goto(-100,0)
done()
Output
Related Post
How to Impress a Girlfriend: https://iterathon.tech//how-to-impress-a-girlfriend-using-python/
Random Password Generator in Python: https://iterathon.tech//random-password-generator-in-python/
How to impress a girlfriend heart using python: https://iterathon.tech//how-to-impress-a-girlfriend-heart-using-python/
LEARN SOMETHING NEW ❣