0:00
Hey guys welcome back, in this video you are basically going to learn how to draw Bill
0:05
Gates sketch using python turtle graphics in just 4 steps. So keep watching
0:13
The first step is all about downloading the required modules for drawing that sketch
0:18
So there are just 2. The first one is canvas. So go ahead and type install canvas py
0:29
This is the module that you need to install first. So go to the first website and here you can see pip install canvas
0:36
So all you need to do is to copy this and paste it into a terminal
0:42
Go and just download it right now. The second module I'm gonna give you is install sketch py
0:54
This is the second module that you need to install. So go to the first website and here you can see the code pip install sketch py
1:04
Go ahead and type that into your terminal so you can get access to drawing beautiful
1:11
sketches using python turtle. That's it. That's all about the first step
1:15
So let's move on to the second step. In the second step you need to download your desired picture that you want to draw using python
1:27
Go ahead and type your desired picture. Suppose I wanna draw Bill Gates picture in this video
1:34
So I'll simply type Bill Gates PNG download. So that's what you can type something like that
1:45
And as you can see if you go to the images you will get couple of pictures and then you
1:50
can choose one of them and just download it. That is the second step that you need to complete
1:58
So let's move on to the third step. In this step you need to convert that PNG that you just downloaded into a vector format
2:08
So how we are going to do that? I'm gonna give you a website, a free website that you can use and that is SVG convert
2:18
So type it in your search bar and you will head up towards that website and as you can
2:24
see the first website is the one we are looking for so svgconvert.com
2:29
So go ahead and now here you need to upload your picture, your PNG that you just downloaded
2:36
So I have my PNG and that is right up here. So now click on the convert and type on black and white so that it can convert that into
2:46
a black and white vector. And simply click the download button and then you need to select the SVG because we
2:55
need it in SVG format. And that's it. That is the third step
3:01
Now let's move on to the final step. So the final step is all about coding part
3:07
So now we can successfully code and draw our Bill Gates sketch using Python turtle
3:12
So go ahead and type from sketch py import canvas and then create an object new equals
3:23
to canvas.sketch from svg and then provide the path to that SVG file that we just got
3:42
on our device. So e and then I have it inside my dump folder and its name is Bill Gates 2.svg
3:58
The third line is new.draw. You just need these three lines of code once you have that vector, that file, that picture
4:10
that you just want to draw using turtle. So that's it. So let's run this code and see what happens
4:15
And here is the result. So that's it. So that's it. So that's it
4:19
So that's it. So that's it. So that's it. So that's it
4:23
So that's it. So that's it. So that's it. So that's it
4:27
So that's it. So that's it. So that's it. So that's it
4:31
So that's it. So that's it. So that's it. So that's it
4:35
So that's it. So that's it. So that's it. So that's it
4:39
So that's it. So that's it. So that's it. So that's it
4:43
So that's it. So that's it. So that's it. So that's it
4:47
So that's it. So that's it. So that's it. So that's it
4:51
So that's it. So that's it. So that's it. So that's it
4:55
So that's it. So that's it. So that's it. So that's it
4:59
So that's it. So that's it. So that's it. So that's it
5:03
So that's it. So that's it. So that's it. So that's it
5:07
So that's it. So that's it. So that's it. So that's it
5:11
So that's it. So that's it. So that's it