1 00:00:05,760 --> 00:00:12,620 Here even so in the last video we are on the decline just loop and that is a little more in forward 2 00:00:12,650 --> 00:00:17,420 direction that we haven't focused on this one so if you'd like the demonstration just change this one 3 00:00:17,420 --> 00:00:24,460 to one and then it will vote like the original one and you can also check one by just running that one. 4 00:00:24,950 --> 00:00:27,640 Now we just talk about collide a loop in this one. 5 00:00:28,340 --> 00:00:33,110 So that is something in which we have to circle then a square then a circle. 6 00:00:33,110 --> 00:00:34,760 Then again square. 7 00:00:34,760 --> 00:00:39,560 So that actually very easy and there are a number of concepts you can do with that one but I'm going 8 00:00:39,560 --> 00:00:41,750 to have a basic one. 9 00:00:42,230 --> 00:00:47,560 What I will do I will take another parameter in dysfunction that is my shape. 10 00:00:47,810 --> 00:00:48,990 And if that shape. 11 00:00:49,070 --> 00:00:55,910 I would check that thing that if that shape is circle then just draw the circle and change the variable 12 00:00:55,910 --> 00:00:56,650 into square. 13 00:00:57,050 --> 00:00:58,590 And then if that is squared. 14 00:00:58,730 --> 00:01:02,240 Draw a square and change the variable again to circle. 15 00:01:02,240 --> 00:01:04,050 That is really very easy. 16 00:01:04,130 --> 00:01:12,530 And how I will do that one first I will take a circle in the beginning and pass here and independent 17 00:01:12,620 --> 00:01:15,780 to shape it has two things data of. 18 00:01:15,870 --> 00:01:20,300 We just need to change this function and what will I do. 19 00:01:20,440 --> 00:01:28,600 First I have the colors will be same like this one and then remove these commands from here and begin 20 00:01:29,200 --> 00:01:29,710 with the. 21 00:01:29,740 --> 00:01:30,520 Where do you able. 22 00:01:30,520 --> 00:01:34,540 That is next shape which will define which is the next shape. 23 00:01:34,560 --> 00:01:35,320 I'm going to have. 24 00:01:35,950 --> 00:01:39,010 And first if this shape equal to circle. 25 00:01:40,510 --> 00:01:44,350 So in that case it will just draw the circle denote circle 26 00:01:48,290 --> 00:01:51,100 and draw a circle with this size. 27 00:01:51,140 --> 00:01:55,640 So to circle and pass this size and change the next shape 28 00:01:58,940 --> 00:02:00,230 into a square. 29 00:02:00,260 --> 00:02:02,480 So that will be game square. 30 00:02:03,100 --> 00:02:04,030 Let me go with. 31 00:02:04,600 --> 00:02:14,010 And as if all we just here that particular figure that is a shape 32 00:02:16,650 --> 00:02:24,090 equal to square then it in that case would we need to do we will do a square and how did you do that 33 00:02:24,090 --> 00:02:24,420 one. 34 00:02:24,780 --> 00:02:34,070 So for i in range simply pass for there because four square divided by two repeated process same so 35 00:02:34,070 --> 00:02:35,120 detailed forward. 36 00:02:36,290 --> 00:02:40,040 And this size will be size multiplied by two. 37 00:02:40,610 --> 00:02:51,690 We are taking a sample just then move in left with a 90 degree difficulty with creating a square. 38 00:02:52,580 --> 00:02:54,260 And then what we do. 39 00:02:54,260 --> 00:02:58,160 Just change the next shape into circle. 40 00:02:59,940 --> 00:03:06,470 So I hope this is very easy and you understand this one very easily because only there are a few months 41 00:03:07,070 --> 00:03:12,500 and then after that when we require the forward in the right direction. 42 00:03:13,280 --> 00:03:14,460 So we don't. 43 00:03:14,540 --> 00:03:15,010 Right. 44 00:03:15,030 --> 00:03:27,620 And then angle after that bolide forward motion and that is going to be this one f or the blue so you 45 00:03:27,620 --> 00:03:37,250 are a blue and here just boss next ship so that others shape equal to next ship. 46 00:03:37,290 --> 00:03:44,740 So if you run this one but the name of this one despite all the while we have modified last one day 47 00:03:44,910 --> 00:03:49,800 we go a circle square again a circle squared. 48 00:03:49,810 --> 00:03:58,060 Now this time we have also deep affect motion here and that is looking very nice and it will continue 49 00:03:58,060 --> 00:04:00,260 to run them again and again. 50 00:04:00,370 --> 00:04:05,380 So that is how you can modify this one very easily and you will also get this one as a separate call 51 00:04:05,890 --> 00:04:11,400 if you get any added in that one just open this one with Atom and check your code. 52 00:04:11,650 --> 00:04:15,160 Also don't click on this why Pi is just double click. 53 00:04:15,480 --> 00:04:16,650 They may start to form. 54 00:04:17,590 --> 00:04:18,520 So thanks for watching. 55 00:04:18,520 --> 00:04:19,690 This is about this figure. 56 00:04:19,840 --> 00:04:22,580 And this one going to be very great here. 57 00:04:22,840 --> 00:04:23,710 Soon the next video.