Hey everyone in this video we will learn about it how we can create figures by using program.
So let's move.
Here we had the terminal.
And I will begin with a python shell then importing turtle and I did some until I had acquired Daedalus
D.
So again then that one.
And in both total as D.
There we go.
And now to access the window any command you can run they will go would be down.
Now I want to do something like creating a finger first by using simple commands.
So for that one I am taking this goes right down up to here.
So this one first then up and now this point is actually before the x axis because this is the.
If we take this one origin this is positive X this is negative X this is positive y this is negative
y.
So this point actually is negative x and positive fine.
So we don't go to and that will be at approximately minus 250 and plus 250.
They go now to create a squared here.
What will I do I simply did not fold one in 200 with bendable they will be bend and let me try that
one they will go after that one I will do the right to make a 90 degree angle they will go with 90 degree
hundreds and I will run these commands again but I did something wrong this time did what left I passed
it on twice they will now again forward then great again forward.
David over the square so this is how you can create a square but it requires a number of lines so to
show that one what we will do we will use loop in this one so simply for our basic for loop and now
we do know what end is kind of barometer anything in that we just required to run these commands four
times one two three and four.
So we simply take our variable I.
So for i in range 1 to let me try that one again for i in range
1 to 5 and what will I do in that one I will add these commands student forward and then I will pass
data say two hundred because Square this time and Dede don't write 90 and they will be the square then
let me make this only larger so you can notice this on a square by just choosing three commands and
that required a number of command.
So when I need to tell you here is you can use the loops to create any kind of figures let me show you
some of that also first d don't then up and then make this fun to go in center so you don't go to 0
0 0 we Dedmon not to create any circle what you need to do first bend down and change the color say
it red
and to create any circle you just need to write did not see eye ah see Ellie because you going to do
moving a point one hundred and eighty times so you just need to rotate the circle and in panties you
need to pass the radius say twenty nine it will create a circle of radius twenty and that is actually
a circle but it seems to be unknown circle of figure because if you zoom this one there are edges there
but still we can see that this one is a circle and you can create this one with any radius like these
and you can also try things like First let me change this one color to do you do color say blue and
now for i in range one to one hundred eighty one up to 180 b don't circle in that one pass by if you
do that one it will create one hundred and eighty circles one about the other and with increasing one
with each radius.
So this is something I have done that I did not have to because it will take a little time to create
one hundred and eighty figures.
So I'm posing a video for a little time because at this point it has only reach up to twenty five.
So here this one actually done and this one takes more than 15 minutes I believe the thing I forget
here.
If Greece disappeared that's why that is very slow.
If I had done this one like First let me change the cards at any other position say the don't go to
and one day my nasty they go with this and they don't.
Carla Fred and increase the speed they don't speed say hundreds and if I run that loop again let's try
that one again but it did it this time just 90 and we have data circle I and they if you can notice
this one increasing very fast and this one has digged this time at hundreds feet so that something we
can accept 15 after that one.
You can also chase these circles like let me have this one first.
Again do any of the pollution like this one.
So this is positive on both side.
Hope you don't go to say 150 and 150 a little more or 15 there.
That's enough maybe now you can also change that loop something like that with those dealt with Dedmon
just 10 values here.
So can I add bass here.
They don't left say any data for each and then you will find this one but that's very small
and
circle I plus.
Let me take a particular value first 90 C and then pass this one here.
Maybe go like this one so you can create these drinks also that look like a 3D structure one about the
other so these are the figures you can create.
One more I want to show you with this one is safety.
Don't go to and this position approximately 150 and on the y axis this one is approximately minus 250.
So there we have this one here at this position.
Now what I will do I will have an entire loop in which I have 10 values and instead of this circle I'm
going to create a stop.
So how can I create a star.
Simply they don't forward we'd say one hundred and fifty degree and for creating a star regionally use
an angle.
So they don't left and that angle will be say 135 this time.
And David go with that one.
So here a star like this one is created and to increase the number of these both stars here like this
one has eight corners.
So it mean for particular one for the opposite one so you can use the Formula 1 at T minus 180 divided
by the coordinates you require the like here we have four men then by four.
This one equal to 135.
So the number of columns you require according to which you can change the angles here.
So that's how you can create these kinds of figure.
And this is the basic about creating figures in the next module.
So right next to it you have to show you something like creating of a robotic figure by using only this.
So thanks for watching.
Soon that video.