Here even.
I hope you enjoyed creating the robot.
So until now what we have done is all based on static objects.
We have created the objects that doesn't move that remain a deposition and Wendy doing is completed.
They just like that as their robots.
But from now we will begin with some motions.
First we will do define motion in which we just defined this one and the data will be created according
to data.
Say I have first example this on colliders fight or be white and Asian done this one but this is a literal
three toed colitis spite and hatred.
And I will get something like this one.
So here.
One by one.
Rings are created with different their radius is against it diameter and with different colors.
One by one.
And if you notice this one that also changing the actual center position for the center is there.
And it has now reached there which is nearly out of the first main circle and it will make guttering
like this one and continue to be like this.
So this is the first example of our movable object.
And this is also actually like a truly objective and created a dead one.
Once it gets there it will look like a 2D object.
So if you are comfortable with creating this one then you can create this one by just posing the video.
And if you are not then follow the video with me and try to create Dedmon.
So now if you notice this one then it's a little harder to tell that whether this one is about or this
one is about.
So whenever you notice any of dating and you can tell which is about data so let's begin with this one.
2 How to create that one because this one is not going to stop.
Now first we look at the terminal.
We will begin by just importing total.
This time I'm not prepping the terminal and imposed this one as we the temperature so there we go with
that one after that one.
You remember that how we can create a circle.
We just simply do the DOT circle.
We had the sun and in that circle pass the radius.
We have 5 and if you do that 1 you will get a circle like that one which is stopped.
So let me also import time as D so that will not stop there and B I'm no sleep safe or 2 seconds for
now and hide the totally lost.
So when I did this one I will do the attitude circle model.
So I wouldn't put it both at the same name B so time.
D I also B I run that one day we go with a circle.
So that's how you can create a circle.
Now in that when you have noticed we have a large number of circle.
So what I'm going to do I'm going to define the function with the name circle.
So here we have this on circle and then positive parameters which I'm not taking anything right now.
What I will do there I will first or bend color.
And that will be say I'm taking credit for an example and then create a circle here.
I'm not taking the pen up and down inside the function because that's what I just required once because
the loop will never stop.
After that one size say this time.
Then after that one day we had this one just so I'm going to draw this one call this one here.
Circle and run this one here you will get our red color circle with radius then so that so we can have
a function here.
Now if we remember our main Kaleido spiral then what.
In that one is circles with different colors and with different sizes and that are moving forward wildly
with a particular distance.
So how I achieve that.
So first of all few basic things I need to add first I change the background color to black because
we have black in that one
maybe go with like and then we will set speed to save fast so maybe I have not mentioned this one.
You can also use slow fast fastest slowest time instead of numbers.
If you've been or defined the actual speed then Ben sighs a little tickle this time too full and then
we have the circle.
Now what will we change here.
First I will try to move my circle a little so please don't write with a particular save value faith
but one thing when I create this circle.
Then that will be created only once.
So how I can move my circle next point.
So here we will use a concept known as recursion legal action.
That's something if you are out of belonging from computer science then you are already familiar with
determine what that actually means.
IDS that's is very simple and basic concept.
It means calling a function inside a function and that means first.
If I have created a circle by using a function then in the end of that particular function I will again
call that function that is serves God same function here.
Then it will again draw a circle.
Let me show that one if I just do this one and run that one there.
This circle is created again and again it will never stop because I'm calling this circle again and
again inside that one.
And if I add this command here and now let me first cancel that one because it will continue to run.
And when I run this one I have this circle again and again.
But there is actually a little shift on that front right now.
If you have noticed this is no longer a circle.
It is actually moving a little difference in forward direction and then again creating a circle.
Or we can say the edge is moving and it now looks like a beach right now.
And then it begins to hurt them.
So that's all you can.
Again and again call the function inside of that man.
So it will look like it's actually moving and that's how you can have a particular right there.
So that it will move a little there.
Now after that one he had these two things.
What I'm going to do with these I'm letting these two user so I will just provide this one as an angle.
This one the circle with a radius say size and the color see color video and pass here.
The color.
Then we had this size and then we had the angle labial and here I will provide these things save red.
After that we have sized say this time one deep and say shift B 40.
Let's see what will happen this time.
Then you run that one you will get this one but nothing after that because the size will be very large.
Now fewer things that we need to change here is first thing you also need to pass these deal.
Maybe that's why it actually doesn't work.
Let me try this one right now.
Because the pyramids are not bustier they will be determined.
So the actual output I'm looking for.
So what's happening actually there.
It's again calling the function with the same parameters in the last we do not have past barometers
here.
So that actually stopped.
And this time we are getting a very beautiful flower here.
Where do we.
A little large size for this one.
Now this is only red color but other colliders spiral is actually in different colors.
So the colors are changing at that point.
So how we can change the colors for them.
One option is to change the colors by just inputting.
Second option here is by using a cycle.
That's something I have already search for.
I am taking a variable here.
Colors and that will be lost I am just passing a cycle here.
I will tell you what that is next actually going to be a list containing different colors see red red
blue green yellow orange a gray feel more if you want to add like much like purple
being.
And whatever the color you'd need there.
You can.
So this is now actually a cycle and how a cycle works is it will take one by one.
Again the values from this list.
So this is a concept we had not learned yet but that's actually how it works.
And here this is actually a matter cycle method and this method is not by default in the main so we
have to but the actually libraries by default we have to import that library and that is in it really
does.
So what I'm going to do here from it are tools.
Import cycle David Goldman.
So now I have imported this cycle.
And in color.
What will I do.
I will just write next.
Of the cycle.
So next of colors.
So in this way it will change the values one by one with that one now save that one and increase the
size to 50 this time so that we can notice that one much better it is actually.
Again and again learning.
Now we're on that planet in Lady go red blue green.
And if you notice this is actually our list pattern red blue green yellow orange gray purple pink and
there again this one that is the flower created and the colors are changing about one and under.
So now that is actually Frost red and you can notice this one.
And if you provide this one the same color only one color then it will now look like a flower but not
the flower.
Let me move to other nest modifications after this one of our next modifications is if you have noticed
a first circle is very small.
Then the second circle is a little larger.
And then again and again they are getting larger.
So how can I solve that problem.
There is something looking weird that goes we can not just call this one with by increasing the values
here again and again but what we can do when the function is called Inside the function then it will
call a little modify function from the previous one.
Remember loop like for i.e. in any number set range we are using then what will we do in that one.
We increase by equal to a plus one and then the I's increased by 1.
Every time we get out of that loop.
So we are going to use the same concept to him we will change the size and the angle from the original
one to the next one.
So size will be size plus say 5 each time.
And the angle will be a little one say one and now be denoted by the color here because we have used
the cycle.
See this one run that again.
I did read here
before I got that one.
Now David go red blue green and if you are noticing now we have the orange one and graven even double
of red purple blue blue sorry Gray this one is even double of that particular blue and this one is increasing
again anarchy.
So we are getting actually a very beautiful figure that is a growing flavor but still require some modification.
And the what the last modification left here is the rotation of this one.
This actual center of this blob and that is actually the edge of every circle here that need to be moved.
So what will we do for that one.
We will move this one a little forward so forward they will pass this a first five and in that will
also fold word plus five.
And James this one for something like four here and pass and the barometer.
So because that one also need to be inputted and that's why we have not considered that one before and
provide a value in the beginning say one or just zero because the first one need to be in center and
then we had this forward and now let's try our program again but is actually still running down all
these circles are very large you no of that one again John.
There we go.
This time the one that would require so here we have a main output that we are needed.
Actually that is moving from its particular position and there we go so that's how you can have this
colitis Speyer spider and Saudi but this time they are moving a different one.
You can also have the same values like the one that we have in our example.
So for that one you need to pass here this size are smaller than say 30.
First of all angle will be zero and the forward action date and one in the beginning.
And let me try that one right now there.
There you go.
So this is the one that we needed but actually it is moving from that point and now going secularly
and this will cover a low plate like this one.
So this is nearly equal to the one that we have in the beginning and that is going out of the field.
So that's how you can create these things that easily in the next video we will do some modifications
with that one and see you there.
And let me also show you what we are going to do in the next video.
So that will be going to be a second be Why file this fun so that we've done that one here by ton 3.
Space for don't get e the ideal
loop would be by sometime I told it by how have their big names.
So in the next video you're going to make something like this one a circle then a squared.
Then again a circle square.
And the same pattern like the collider spiral is going on.
So if you are feeling comfortable and if you can make this one then give it a try before watching the
next video.
And if you are not feeling then go with me in the next video we will continue the discussion.
So see you there.