Here even so in the last video we are on the decline just loop and that is a little more in forward
direction that we haven't focused on this one so if you'd like the demonstration just change this one
to one and then it will vote like the original one and you can also check one by just running that one.
Now we just talk about collide a loop in this one.
So that is something in which we have to circle then a square then a circle.
Then again square.
So that actually very easy and there are a number of concepts you can do with that one but I'm going
to have a basic one.
What I will do I will take another parameter in dysfunction that is my shape.
And if that shape.
I would check that thing that if that shape is circle then just draw the circle and change the variable
into square.
And then if that is squared.
Draw a square and change the variable again to circle.
That is really very easy.
And how I will do that one first I will take a circle in the beginning and pass here and independent
to shape it has two things data of.
We just need to change this function and what will I do.
First I have the colors will be same like this one and then remove these commands from here and begin
with the.
Where do you able.
That is next shape which will define which is the next shape.
I'm going to have.
And first if this shape equal to circle.
So in that case it will just draw the circle denote circle
and draw a circle with this size.
So to circle and pass this size and change the next shape
into a square.
So that will be game square.
Let me go with.
And as if all we just here that particular figure that is a shape
equal to square then it in that case would we need to do we will do a square and how did you do that
one.
So for i in range simply pass for there because four square divided by two repeated process same so
detailed forward.
And this size will be size multiplied by two.
We are taking a sample just then move in left with a 90 degree difficulty with creating a square.
And then what we do.
Just change the next shape into circle.
So I hope this is very easy and you understand this one very easily because only there are a few months
and then after that when we require the forward in the right direction.
So we don't.
Right.
And then angle after that bolide forward motion and that is going to be this one f or the blue so you
are a blue and here just boss next ship so that others shape equal to next ship.
So if you run this one but the name of this one despite all the while we have modified last one day
we go a circle square again a circle squared.
Now this time we have also deep affect motion here and that is looking very nice and it will continue
to run them again and again.
So that is how you can modify this one very easily and you will also get this one as a separate call
if you get any added in that one just open this one with Atom and check your code.
Also don't click on this why Pi is just double click.
They may start to form.
So thanks for watching.
This is about this figure.
And this one going to be very great here.
Soon the next video.