Here even in this video we are going to draw this kind of robot by using other skills.
So here this is a very easy task I believe.
So if you are feeling comfortable with this one I suggest to replace the video and give it a try.
A device goes with me so I'm taking this one here for a little field so that we can have an idea.
And after that here we have the dominant and we will begin with by turn 3.
Now before getting to this robot two things you need to notice here.
If you notice on the robot carefully then you will find that every part of this one is a rectangle like
this body.
They fit the legs this head even the eyes and the pupil inside them.
They are also rectangle.
So what we need to do here is we need to create one two three four five six seven eight nine 10 11 12
13 14 15 rectangles.
So we require a number of commands for creating rectangles.
So what I'm going to do here I will define a function that will create a rectangle for me.
And the thing here is the thing it had different length and breadth.
So I will take inputs for these values and provide the function lantern bed so that the rectangles will
be created.
Let me show you that one how.
So first of all import turtle as t we go with deadpan.
Now I'm going to define a function known as rectangle.
So here we have this one or give it a short name so that we need to call this one of the large name
so here we have this small rectangle.
And what I need to parse this one land and I'm taking the land as horizontal because because of most
a distance for display that is horizontally and for the that the vertical distance here we had this
one also we have different colors for different rectangles.
So I need a double known as Color.
David go with this.
Now what will this do.
First of all creating the rectangle that part is very easy.
Just need to create this forward direction of our nation.
And then again these two end there fill the color but for that one first I need to make my pen down
because this time we cannot do pen everything with pen down because that will create unnecessary in
lines here and there.
So we need to again and again pen down and pen up.
So first of all I'm making my pen down then providing a pen size in that capital.
So the pen sides and taking this one as just one after that one I will provide these colors that which
kind of color does this mean three.
So Peter what color.
And that will be input this.
So CIOL after that one I will fill that one.
So maybe I do not have use this method.
So this method is used to fill color inside these figures so beloved you have just created figures but
we do not have full color inside that pen.
So that's how you can fill the color inside the figure first provided that when a color and then fill
inside that.
What happened here.
I got out of the function.
So I needed to create that one we have been known
David Ben size and the color
after that one the writer just began underscored fill and pass defenses.
That's about this one.
After that one.
Here we are done with things like we just need to bend down the size and the color.
Now we will create directing.
So what will I do I will use a for loop for i in range and I will only take here too because in Square
didn't required to create the same step four times because the lengths are equal for every site but
rectangle only the opposite glance at equal.
So I wanted to first create lent and then I will create that and bread.
And I'm repeat the process for these two.
I hope you get that one.
So first of all I will create land by deed or 44 and this land will be horizontal.
After that one I will change the angle by 90 degrees because rectangle also have 90 degree angle.
After that one I will make this one again and forward.
So now first this land is created.
Now this has caused up for that action and it will travel up to work equal distance.
They've had this one and then I will again to take this one with 90 degrees.
So right now we have 90.
In this way our rectangle will be created.
Now as soon as the rectangle will be created for everything then so did the average figure like if we
consider default then for only four foot then here we have begin the field color.
Now we need to end that one.
Otherwise the whole screen will be colored with that color.
So and fill.
And after that in the end we have to depend.
So Ben let me go and I hope you get to dysfunction how I have created this one.
You just first bend down then I have taken a size and color and starting filling that color then I have
created a rectangle by using twice this one.
So I have just to use loop for one and two and in each case first it will go for is only then changing
angle by 90 degrees then vertically.
Then again choose the anger and then repeat the process.
After that when I have just entered the field and lifted my pen.
So here we have just to define a main function that will create rectangles for us.
And now we will move defining this robot.
So first of all the dot.
Ben up first I will begin with Ben up here.
We have this one and go to a specific position so I did not require any lines there.
Now this one go to that point I had to make some space here.
This one here and the main product will be here on the left maybe.
So first of all I have just been uplifted and then a speed say no slow selective slow fast.
So here we have the one
here.
This building after that one first thing here.
If you notice the background.
So that something like Dodger blue.
So first provide the background color.
So Peter beachy color.
And by this way you can also provide this screen the color bars deal DHEA and then blue button.
They we had the same screen first step down.
And now we will McGee begin from this point creating the food first.
So don't go to and the points here will be I have or already find the coordinates.
So I am just writing that coordinates hundred and that is minus 150.
So it goes there.
After that when we need to call the rectangle function here we have this one right.
So rectangle and their boss plus the horizontal distance so this one is approximately 50 pixels.
And the height of foot is 20 pixels and the color.
There it is blue.
So blue
labial.
So here we go down our little rectangle with blue color.
So that's how you can create these kind of figures.
After that one I'm copying the code to come on.
Let me go this I know I'm on C and the second foot here.
This will be on the same y.
That is minus 150 but the X will be different.
That is minus 20 minus 30 and minus 150 I go and then create the rectangle with these same horizontal
distance same vertical and same color.
So David go with the other one.
Now here we are done with this one.
After that one move.
Go to a different position minus twenty five and minus 50 maybe will Dedmon for this like after that
one rectangle with horizontal distance.
Because these are not very large in horizontal but large in what they call so horizontal 15.
And what we call 100 just 100 not 150 and then provide this one great it redone.
David Goldman.
Now again go to come on why will the same but X will be minus 50 minus fifty five and the same rectangle
there.
But we go to the friends that must be a little here.
So what we do know is just create the rectangle oh what will we do.
We can do same thing and change the color to brilliant blue.
So it will replace that rectangle.
And there you go.
So now the particular rectangle is removed and we need to go to different positions say this one maybe
minus 50
and I believe we are at the right position right now.
James this one too great no gain at all in position.
And that must be if this is minus 50 minus fifty five then it must be 60 so 60 and try again degree
again how do you delay friends.
And this time I'm going for 70 not seventy sixty five.
Let's go
and find legal Vigoda 56 here but still more get just five cents if you want.
But I'm taking this one.
You can just pass here minus 70.
So here we are.
Not only that but also now move to body and trade coordinates for this one.
This will not happen again with the coordinates.
That is minus 90 and hundred.
So I go to this one and now I will create the rectangle there so the coordinates for these are a little
different this is hundreds.
And this is going to be 150 and of radical so hundred 150 and Fred labial so we have no body also after
that one had moved to Canada coordinates that is this one minus 150 and this one 70 he got to this point
for this.
And then I will create a rectangle.
Great color.
But with different values that is this 160.
Also you can make your robot according to you more healthier more.
Tina if you want to maybe go with that one.
Now one of the position this one 1 1 10 David go after that one direct angle and this is going to be
a little smaller.
That is 15 and 40 David go with the now decide.
So for that one here we have this one and this one 70.
There we go to that particular position.
Now again a rectangle with 60 15 and green.
Maybe go and then this position that is 55 and 110 so not that one just 100 and they we go after that
again a rectangle with 15 40 and green.
There we go with that.
So here we are not only this one also just the upper bodies left now.
So now let the color that first of all you need to go to minus 50 and 120 for this little light.
And then create a rectangle that is also with great color.
And we did dimension 50 20 in green.
There we go.
Now just a face for that one.
You need to go minus 85.
So I have no remember these coordinate to have district and I will not work and I'm looking at that
one.
So there you go.
And now direct angle there we go 80 and this 150.
And there we had this Andre
de rigueur with a perfect face after that Dedmon the eyes and the mouth.
So first we color eyes we had the coordinate 60 and one hundred and sixty you go with that one after
that one you would create a rectangle there.
The
30 and and white color labial.
Now we are going to.
Just these small eyes so they have coordinates minus 55 and this one one fifty five.
They got Dedmon and small rectangles with five five because they are just squares and this one black
for the pupil maybe go above it the one and now this time distance must be taken very carefully.
Forty one fifty five.
There we go.
So we have a perfect.
First I have drawn this one I have graded the A here somehow.
After that one just the mouth clip that is forty one fifty five this one and then that one is sixty
five and one thirty eight.
There we go and just a rectangle with the same there but different land and same color label.
Now we have and with this one just tie this goes up so you can hide this goes to buy just data or type
turtle maybe.
So here we are done with this one.
We have created a robot.
Same as like this one.
Yes.
So I have created it this way.
So that's how you can create figures by using your own basic simple commands but just taking your mind
to a different direction.
Also it is now working fine terminal and you can also make discord with the atom.
Here I have this goal.
I am just opening this one here.
And if you notice everything is same here.
First I have embodied total.
This time is I have just done because value will create this function with that Ed. It will just once
draw the function and it will get close.
Let me show you that one when I do not add this one.
This come on let's do come on so completely same total that I have this function same function.
But the dragnet in the name then I have just created the forts then these legs then the body red and
then you can notice this on all the things I see but just line by line.
So I have saved this one and going to run that one here
just exit.
They go.
So see the next stop by 10 3 and what's the name.
1 Don't showboat not be light.
There we go.
So here I am.
This will continuously create a robot without any leg there.
But just take a focus at this one.
There we go.
We just phase and I's Mao.
But as soon as this one get over the application is closed automatically.
So for that one I have area that command him that is I have embodied a time liability.
And as soon as the figure is completely drawn I have made the application slip for 10 seconds.
So it will remain there for 10 seconds and then it will go up.
I am showing you for a little of three seconds.
I have taken the three seconds and increasing the speed to say hundred so that we do not have to wait
for that one to draw.
They will here we had the robot so 1 2 and 3 debut.
So that's how you can do this one.
So I am just making this on slow for your call.
And this one ten seconds and discord will be available with the module so that you will get if any error
then you can correct that one.
So thanks for watching.
We are done with this one.
I was in the next video.