Skip to main content

How to draw windows logo | Draw windows logo using python

 

Which module you need for this project

In this whole project we will just use the turtle module of  python

Why not other languages

If you are in industry of programming then you know that we also can draw and create animation in C but we choose python because it is easy to understand for begenners. So try to understand the code👨‍💻.

First part

import all method from the module turtle

from turtle import *

Second part

Then use the done() method to hold the screen

done()

Final part

from turtle import *
# set background color as black
bgcolor('black')
# make the position
penup()
goto(-50,90)
pendown()
# set the pen color
pencolor('#00adef')
# color your design
fillcolor('#00adef')
begin_fill()
left(9)
forward(200)
right(99)
forward(200)
right(99)
forward(200)
right(81)
forward(140)
end_fill()
# draw the cross lines
pencolor('black')
pensize(9)
penup()
right(81)
forward(90)
right(99)
pendown()
forward(170)
penup()
right(99)
forward(100)
right(81)
forward(70)
right(90)
pendown()
forward(220)
hideturtle()
done()

Comments

Popular posts from this blog

Draw Minecraft Charater in Python

  Minecraft  is a  sandbox video game  developed by the Swedish video game developer  Mojang Studios . The game was created by  Markus "Notch" Persson  in the  Java programming language . Following several early private testing versions, it was first made public in May 2009 before fully releasing in November 2011, with  Jens Bergensten  then taking over development.  Minecraft  has since been ported to several other platforms and is the  best-selling video game of all time , with over 238 million copies sold and nearly 140 million  monthly active users  as of 2021 . We gonna build a character of Minecraft using our creativity and coding skills so let's drive into the code: Code: import turtle as t def eye ( r , a ):     t . fillcolor ( 'brown' )     t . begin_fill ()     t . circle ( r , a )     t . end_fill () t . begin_fill () t . fillcolor (...

How To Draw BMW Logo - In Python

 I know I don't need to introduce BMW as it is a very popular luxury car. Today we gonna draw the BMW logo in python. I know that you can draw it using a pencil and other tools like AutoCAD etc. But we are programmers we talk with computers so let's tell our computer to draw this logo for use with the help of python. Module The only module we will use is that turtle Code: import turtle as t t.begin_fill() t.fillcolor( '#008ac9' ) for i in range ( 50 ):     t.forward( 4 )     t.left( 2 ) t.right(- 80 ) t.forward( 116 ) t.right(- 90 ) t.forward( 132 ) t.end_fill() t.penup() t.pendown() t.right( 90 ) for i in range ( 50 ):     t.forward( 4 )     t.left(- 2 ) t.right( 80 ) t.forward( 116 ) t.forward(- 116 ) t.right( 90 ) t.begin_fill() t.fillcolor( '#008ac9' ) for j in range ( 45 ):     t.forward(- 4 )     t.left(- 2 ) t.right(- 90 ) t.forward( 116 ) t.end_fill() t.right( 180 ) t.forward( 116 ) t.right( 90 ) for i in ...

Walking Cat Animation using Pure CSS and HTML

  Showing your creativity with coding is really awesome and fun. This is the post where the creativity is the CSS. So enjoy the code and try to show your creativity. HTML: <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta http-equiv="X-UA-Compatible" content="IE=edge">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>walking Cat</title>     <link rel="stylesheet" href="style.css"> </head> <body>         <div id="marco">           <div id="cielo"></div>                 <div id="luna"></div>                 <div id="gato"></div>                 <div id="muro"></div>       ...