1 00:00:05,900 --> 00:00:14,670 Here even in this video we are going to draw this kind of robot by using other skills. 2 00:00:14,730 --> 00:00:17,270 So here this is a very easy task I believe. 3 00:00:17,700 --> 00:00:23,130 So if you are feeling comfortable with this one I suggest to replace the video and give it a try. 4 00:00:23,340 --> 00:00:30,570 A device goes with me so I'm taking this one here for a little field so that we can have an idea. 5 00:00:31,550 --> 00:00:39,940 And after that here we have the dominant and we will begin with by turn 3. 6 00:00:40,060 --> 00:00:43,530 Now before getting to this robot two things you need to notice here. 7 00:00:43,540 --> 00:00:50,290 If you notice on the robot carefully then you will find that every part of this one is a rectangle like 8 00:00:50,290 --> 00:00:51,680 this body. 9 00:00:51,830 --> 00:00:59,530 They fit the legs this head even the eyes and the pupil inside them. 10 00:00:59,530 --> 00:01:01,780 They are also rectangle. 11 00:01:01,780 --> 00:01:08,050 So what we need to do here is we need to create one two three four five six seven eight nine 10 11 12 12 00:01:08,050 --> 00:01:11,200 13 14 15 rectangles. 13 00:01:11,260 --> 00:01:15,130 So we require a number of commands for creating rectangles. 14 00:01:15,130 --> 00:01:20,190 So what I'm going to do here I will define a function that will create a rectangle for me. 15 00:01:20,340 --> 00:01:25,400 And the thing here is the thing it had different length and breadth. 16 00:01:26,100 --> 00:01:34,410 So I will take inputs for these values and provide the function lantern bed so that the rectangles will 17 00:01:34,410 --> 00:01:35,780 be created. 18 00:01:35,790 --> 00:01:37,090 Let me show you that one how. 19 00:01:37,650 --> 00:01:43,880 So first of all import turtle as t we go with deadpan. 20 00:01:44,010 --> 00:01:48,330 Now I'm going to define a function known as rectangle. 21 00:01:49,140 --> 00:01:54,730 So here we have this one or give it a short name so that we need to call this one of the large name 22 00:01:55,810 --> 00:01:57,250 so here we have this small rectangle. 23 00:01:57,940 --> 00:02:06,140 And what I need to parse this one land and I'm taking the land as horizontal because because of most 24 00:02:06,140 --> 00:02:14,360 a distance for display that is horizontally and for the that the vertical distance here we had this 25 00:02:14,360 --> 00:02:18,230 one also we have different colors for different rectangles. 26 00:02:18,230 --> 00:02:21,380 So I need a double known as Color. 27 00:02:21,380 --> 00:02:22,770 David go with this. 28 00:02:23,180 --> 00:02:24,540 Now what will this do. 29 00:02:24,590 --> 00:02:29,510 First of all creating the rectangle that part is very easy. 30 00:02:29,520 --> 00:02:33,310 Just need to create this forward direction of our nation. 31 00:02:33,320 --> 00:02:39,620 And then again these two end there fill the color but for that one first I need to make my pen down 32 00:02:39,830 --> 00:02:46,130 because this time we cannot do pen everything with pen down because that will create unnecessary in 33 00:02:46,130 --> 00:02:47,220 lines here and there. 34 00:02:47,690 --> 00:02:50,880 So we need to again and again pen down and pen up. 35 00:02:51,410 --> 00:03:00,460 So first of all I'm making my pen down then providing a pen size in that capital. 36 00:03:00,950 --> 00:03:13,640 So the pen sides and taking this one as just one after that one I will provide these colors that which 37 00:03:13,640 --> 00:03:16,440 kind of color does this mean three. 38 00:03:16,460 --> 00:03:17,570 So Peter what color. 39 00:03:19,430 --> 00:03:21,010 And that will be input this. 40 00:03:22,220 --> 00:03:26,660 So CIOL after that one I will fill that one. 41 00:03:26,660 --> 00:03:29,090 So maybe I do not have use this method. 42 00:03:29,720 --> 00:03:36,710 So this method is used to fill color inside these figures so beloved you have just created figures but 43 00:03:36,710 --> 00:03:39,340 we do not have full color inside that pen. 44 00:03:39,380 --> 00:03:45,470 So that's how you can fill the color inside the figure first provided that when a color and then fill 45 00:03:45,470 --> 00:03:46,590 inside that. 46 00:03:47,150 --> 00:03:48,210 What happened here. 47 00:03:48,660 --> 00:03:51,070 I got out of the function. 48 00:03:51,100 --> 00:03:57,390 So I needed to create that one we have been known 49 00:04:00,300 --> 00:04:04,840 David Ben size and the color 50 00:04:09,260 --> 00:04:16,290 after that one the writer just began underscored fill and pass defenses. 51 00:04:16,360 --> 00:04:17,270 That's about this one. 52 00:04:18,030 --> 00:04:19,110 After that one. 53 00:04:19,110 --> 00:04:23,570 Here we are done with things like we just need to bend down the size and the color. 54 00:04:23,700 --> 00:04:25,020 Now we will create directing. 55 00:04:25,830 --> 00:04:37,260 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 56 00:04:37,440 --> 00:04:43,990 didn't required to create the same step four times because the lengths are equal for every site but 57 00:04:44,040 --> 00:04:46,610 rectangle only the opposite glance at equal. 58 00:04:46,650 --> 00:04:49,930 So I wanted to first create lent and then I will create that and bread. 59 00:04:50,220 --> 00:04:54,630 And I'm repeat the process for these two. 60 00:04:54,630 --> 00:04:55,620 I hope you get that one. 61 00:04:56,250 --> 00:05:03,160 So first of all I will create land by deed or 44 and this land will be horizontal. 62 00:05:04,440 --> 00:05:12,740 After that one I will change the angle by 90 degrees because rectangle also have 90 degree angle. 63 00:05:12,930 --> 00:05:16,560 After that one I will make this one again and forward. 64 00:05:17,100 --> 00:05:18,930 So now first this land is created. 65 00:05:18,930 --> 00:05:24,450 Now this has caused up for that action and it will travel up to work equal distance. 66 00:05:24,540 --> 00:05:30,510 They've had this one and then I will again to take this one with 90 degrees. 67 00:05:30,730 --> 00:05:36,160 So right now we have 90. 68 00:05:36,210 --> 00:05:39,760 In this way our rectangle will be created. 69 00:05:39,930 --> 00:05:47,880 Now as soon as the rectangle will be created for everything then so did the average figure like if we 70 00:05:47,880 --> 00:05:53,150 consider default then for only four foot then here we have begin the field color. 71 00:05:53,170 --> 00:05:55,160 Now we need to end that one. 72 00:05:55,290 --> 00:05:58,740 Otherwise the whole screen will be colored with that color. 73 00:05:59,490 --> 00:06:02,440 So and fill. 74 00:06:02,640 --> 00:06:05,100 And after that in the end we have to depend. 75 00:06:05,550 --> 00:06:12,470 So Ben let me go and I hope you get to dysfunction how I have created this one. 76 00:06:12,520 --> 00:06:19,320 You just first bend down then I have taken a size and color and starting filling that color then I have 77 00:06:19,320 --> 00:06:23,340 created a rectangle by using twice this one. 78 00:06:23,340 --> 00:06:30,020 So I have just to use loop for one and two and in each case first it will go for is only then changing 79 00:06:30,150 --> 00:06:32,970 angle by 90 degrees then vertically. 80 00:06:32,970 --> 00:06:36,030 Then again choose the anger and then repeat the process. 81 00:06:36,030 --> 00:06:39,330 After that when I have just entered the field and lifted my pen. 82 00:06:40,560 --> 00:06:46,670 So here we have just to define a main function that will create rectangles for us. 83 00:06:46,920 --> 00:06:49,740 And now we will move defining this robot. 84 00:06:50,580 --> 00:06:53,590 So first of all the dot. 85 00:06:54,860 --> 00:06:57,990 Ben up first I will begin with Ben up here. 86 00:06:57,990 --> 00:07:04,960 We have this one and go to a specific position so I did not require any lines there. 87 00:07:05,770 --> 00:07:11,470 Now this one go to that point I had to make some space here. 88 00:07:11,590 --> 00:07:18,480 This one here and the main product will be here on the left maybe. 89 00:07:19,310 --> 00:07:30,100 So first of all I have just been uplifted and then a speed say no slow selective slow fast. 90 00:07:30,380 --> 00:07:33,600 So here we have the one 91 00:07:42,110 --> 00:07:42,530 here. 92 00:07:42,580 --> 00:07:45,410 This building after that one first thing here. 93 00:07:45,410 --> 00:07:47,000 If you notice the background. 94 00:07:47,360 --> 00:07:49,410 So that something like Dodger blue. 95 00:07:49,520 --> 00:07:51,200 So first provide the background color. 96 00:07:51,920 --> 00:07:54,080 So Peter beachy color. 97 00:07:54,470 --> 00:08:04,140 And by this way you can also provide this screen the color bars deal DHEA and then blue button. 98 00:08:04,160 --> 00:08:07,810 They we had the same screen first step down. 99 00:08:08,310 --> 00:08:12,630 And now we will McGee begin from this point creating the food first. 100 00:08:13,650 --> 00:08:20,610 So don't go to and the points here will be I have or already find the coordinates. 101 00:08:20,610 --> 00:08:25,560 So I am just writing that coordinates hundred and that is minus 150. 102 00:08:26,580 --> 00:08:27,830 So it goes there. 103 00:08:27,900 --> 00:08:34,170 After that when we need to call the rectangle function here we have this one right. 104 00:08:35,040 --> 00:08:42,260 So rectangle and their boss plus the horizontal distance so this one is approximately 50 pixels. 105 00:08:43,020 --> 00:08:47,070 And the height of foot is 20 pixels and the color. 106 00:08:47,070 --> 00:08:48,130 There it is blue. 107 00:08:48,570 --> 00:08:49,590 So blue 108 00:08:52,260 --> 00:08:53,450 labial. 109 00:08:53,500 --> 00:08:56,110 So here we go down our little rectangle with blue color. 110 00:08:56,890 --> 00:08:59,270 So that's how you can create these kind of figures. 111 00:08:59,350 --> 00:09:03,700 After that one I'm copying the code to come on. 112 00:09:04,770 --> 00:09:09,830 Let me go this I know I'm on C and the second foot here. 113 00:09:09,850 --> 00:09:13,790 This will be on the same y. 114 00:09:13,870 --> 00:09:17,170 That is minus 150 but the X will be different. 115 00:09:17,170 --> 00:09:26,860 That is minus 20 minus 30 and minus 150 I go and then create the rectangle with these same horizontal 116 00:09:26,860 --> 00:09:29,050 distance same vertical and same color. 117 00:09:29,050 --> 00:09:31,800 So David go with the other one. 118 00:09:31,870 --> 00:09:33,640 Now here we are done with this one. 119 00:09:34,150 --> 00:09:36,440 After that one move. 120 00:09:36,440 --> 00:09:46,930 Go to a different position minus twenty five and minus 50 maybe will Dedmon for this like after that 121 00:09:46,930 --> 00:09:51,800 one rectangle with horizontal distance. 122 00:09:51,840 --> 00:09:59,060 Because these are not very large in horizontal but large in what they call so horizontal 15. 123 00:09:59,060 --> 00:10:10,240 And what we call 100 just 100 not 150 and then provide this one great it redone. 124 00:10:10,270 --> 00:10:12,130 David Goldman. 125 00:10:12,270 --> 00:10:23,200 Now again go to come on why will the same but X will be minus 50 minus fifty five and the same rectangle 126 00:10:23,200 --> 00:10:23,780 there. 127 00:10:25,140 --> 00:10:29,550 But we go to the friends that must be a little here. 128 00:10:31,050 --> 00:10:38,970 So what we do know is just create the rectangle oh what will we do. 129 00:10:39,040 --> 00:10:43,740 We can do same thing and change the color to brilliant blue. 130 00:10:44,250 --> 00:10:47,020 So it will replace that rectangle. 131 00:10:48,180 --> 00:10:48,960 And there you go. 132 00:10:49,470 --> 00:10:57,400 So now the particular rectangle is removed and we need to go to different positions say this one maybe 133 00:10:57,420 --> 00:10:58,320 minus 50 134 00:11:01,160 --> 00:11:03,560 and I believe we are at the right position right now. 135 00:11:06,290 --> 00:11:12,070 James this one too great no gain at all in position. 136 00:11:16,380 --> 00:11:28,310 And that must be if this is minus 50 minus fifty five then it must be 60 so 60 and try again degree 137 00:11:31,250 --> 00:11:32,910 again how do you delay friends. 138 00:11:38,170 --> 00:11:43,800 And this time I'm going for 70 not seventy sixty five. 139 00:11:44,530 --> 00:11:44,920 Let's go 140 00:11:48,070 --> 00:11:55,370 and find legal Vigoda 56 here but still more get just five cents if you want. 141 00:11:55,710 --> 00:11:57,600 But I'm taking this one. 142 00:11:58,020 --> 00:12:00,070 You can just pass here minus 70. 143 00:12:00,690 --> 00:12:01,230 So here we are. 144 00:12:01,230 --> 00:12:08,430 Not only that but also now move to body and trade coordinates for this one. 145 00:12:08,430 --> 00:12:10,440 This will not happen again with the coordinates. 146 00:12:10,440 --> 00:12:13,190 That is minus 90 and hundred. 147 00:12:14,040 --> 00:12:25,790 So I go to this one and now I will create the rectangle there so the coordinates for these are a little 148 00:12:25,860 --> 00:12:27,010 different this is hundreds. 149 00:12:27,120 --> 00:12:41,980 And this is going to be 150 and of radical so hundred 150 and Fred labial so we have no body also after 150 00:12:41,990 --> 00:12:57,620 that one had moved to Canada coordinates that is this one minus 150 and this one 70 he got to this point 151 00:12:57,710 --> 00:12:58,450 for this. 152 00:12:59,710 --> 00:13:02,100 And then I will create a rectangle. 153 00:13:02,290 --> 00:13:03,050 Great color. 154 00:13:04,260 --> 00:13:09,000 But with different values that is this 160. 155 00:13:09,380 --> 00:13:13,060 Also you can make your robot according to you more healthier more. 156 00:13:13,170 --> 00:13:16,410 Tina if you want to maybe go with that one. 157 00:13:16,740 --> 00:13:27,270 Now one of the position this one 1 1 10 David go after that one direct angle and this is going to be 158 00:13:27,270 --> 00:13:29,370 a little smaller. 159 00:13:29,370 --> 00:13:37,500 That is 15 and 40 David go with the now decide. 160 00:13:38,010 --> 00:13:47,960 So for that one here we have this one and this one 70. 161 00:13:48,010 --> 00:13:50,310 There we go to that particular position. 162 00:13:50,310 --> 00:13:54,520 Now again a rectangle with 60 15 and green. 163 00:13:55,310 --> 00:14:09,320 Maybe go and then this position that is 55 and 110 so not that one just 100 and they we go after that 164 00:14:09,410 --> 00:14:14,020 again a rectangle with 15 40 and green. 165 00:14:14,240 --> 00:14:15,300 There we go with that. 166 00:14:15,650 --> 00:14:20,370 So here we are not only this one also just the upper bodies left now. 167 00:14:21,110 --> 00:14:32,730 So now let the color that first of all you need to go to minus 50 and 120 for this little light. 168 00:14:33,740 --> 00:14:36,800 And then create a rectangle that is also with great color. 169 00:14:37,760 --> 00:14:40,880 And we did dimension 50 20 in green. 170 00:14:40,880 --> 00:14:41,900 There we go. 171 00:14:41,930 --> 00:14:44,800 Now just a face for that one. 172 00:14:44,810 --> 00:14:47,970 You need to go minus 85. 173 00:14:48,170 --> 00:14:52,160 So I have no remember these coordinate to have district and I will not work and I'm looking at that 174 00:14:52,160 --> 00:14:52,430 one. 175 00:14:53,270 --> 00:14:54,180 So there you go. 176 00:14:55,100 --> 00:15:02,090 And now direct angle there we go 80 and this 150. 177 00:15:02,540 --> 00:15:03,750 And there we had this Andre 178 00:15:06,530 --> 00:15:10,990 de rigueur with a perfect face after that Dedmon the eyes and the mouth. 179 00:15:11,000 --> 00:15:22,640 So first we color eyes we had the coordinate 60 and one hundred and sixty you go with that one after 180 00:15:22,640 --> 00:15:25,120 that one you would create a rectangle there. 181 00:15:26,650 --> 00:15:27,020 The 182 00:15:30,950 --> 00:15:38,890 30 and and white color labial. 183 00:15:38,990 --> 00:15:40,230 Now we are going to. 184 00:15:40,370 --> 00:15:51,160 Just these small eyes so they have coordinates minus 55 and this one one fifty five. 185 00:15:52,080 --> 00:16:01,570 They got Dedmon and small rectangles with five five because they are just squares and this one black 186 00:16:03,380 --> 00:16:11,780 for the pupil maybe go above it the one and now this time distance must be taken very carefully. 187 00:16:11,840 --> 00:16:13,380 Forty one fifty five. 188 00:16:13,440 --> 00:16:13,960 There we go. 189 00:16:15,620 --> 00:16:17,400 So we have a perfect. 190 00:16:17,450 --> 00:16:21,060 First I have drawn this one I have graded the A here somehow. 191 00:16:21,590 --> 00:16:28,310 After that one just the mouth clip that is forty one fifty five this one and then that one is sixty 192 00:16:28,310 --> 00:16:32,160 five and one thirty eight. 193 00:16:32,230 --> 00:16:41,780 There we go and just a rectangle with the same there but different land and same color label. 194 00:16:42,210 --> 00:16:48,960 Now we have and with this one just tie this goes up so you can hide this goes to buy just data or type 195 00:16:48,960 --> 00:16:52,370 turtle maybe. 196 00:16:53,520 --> 00:16:55,610 So here we are done with this one. 197 00:16:55,620 --> 00:16:56,810 We have created a robot. 198 00:16:56,820 --> 00:16:58,680 Same as like this one. 199 00:16:58,910 --> 00:16:59,290 Yes. 200 00:16:59,340 --> 00:17:00,540 So I have created it this way. 201 00:17:01,620 --> 00:17:07,860 So that's how you can create figures by using your own basic simple commands but just taking your mind 202 00:17:07,860 --> 00:17:09,720 to a different direction. 203 00:17:10,150 --> 00:17:19,160 Also it is now working fine terminal and you can also make discord with the atom. 204 00:17:19,160 --> 00:17:20,120 Here I have this goal. 205 00:17:20,130 --> 00:17:21,410 I am just opening this one here. 206 00:17:22,630 --> 00:17:25,100 And if you notice everything is same here. 207 00:17:25,100 --> 00:17:26,750 First I have embodied total. 208 00:17:26,810 --> 00:17:36,260 This time is I have just done because value will create this function with that Ed. It will just once 209 00:17:36,260 --> 00:17:38,390 draw the function and it will get close. 210 00:17:38,390 --> 00:17:42,060 Let me show you that one when I do not add this one. 211 00:17:42,240 --> 00:17:47,490 This come on let's do come on so completely same total that I have this function same function. 212 00:17:47,660 --> 00:17:56,540 But the dragnet in the name then I have just created the forts then these legs then the body red and 213 00:17:56,540 --> 00:18:00,900 then you can notice this on all the things I see but just line by line. 214 00:18:01,020 --> 00:18:04,430 So I have saved this one and going to run that one here 215 00:18:08,100 --> 00:18:10,370 just exit. 216 00:18:10,830 --> 00:18:11,270 They go. 217 00:18:11,640 --> 00:18:18,370 So see the next stop by 10 3 and what's the name. 218 00:18:18,400 --> 00:18:24,100 1 Don't showboat not be light. 219 00:18:24,300 --> 00:18:24,780 There we go. 220 00:18:25,050 --> 00:18:26,140 So here I am. 221 00:18:26,370 --> 00:18:30,270 This will continuously create a robot without any leg there. 222 00:18:31,230 --> 00:18:35,540 But just take a focus at this one. 223 00:18:35,580 --> 00:18:36,420 There we go. 224 00:18:36,420 --> 00:18:43,000 We just phase and I's Mao. 225 00:18:43,830 --> 00:18:48,310 But as soon as this one get over the application is closed automatically. 226 00:18:48,900 --> 00:18:56,210 So for that one I have area that command him that is I have embodied a time liability. 227 00:18:56,240 --> 00:19:01,120 And as soon as the figure is completely drawn I have made the application slip for 10 seconds. 228 00:19:01,160 --> 00:19:05,640 So it will remain there for 10 seconds and then it will go up. 229 00:19:05,710 --> 00:19:10,190 I am showing you for a little of three seconds. 230 00:19:10,310 --> 00:19:18,520 I have taken the three seconds and increasing the speed to say hundred so that we do not have to wait 231 00:19:18,520 --> 00:19:20,370 for that one to draw. 232 00:19:20,520 --> 00:19:28,750 They will here we had the robot so 1 2 and 3 debut. 233 00:19:30,070 --> 00:19:31,540 So that's how you can do this one. 234 00:19:31,540 --> 00:19:35,050 So I am just making this on slow for your call. 235 00:19:35,080 --> 00:19:40,840 And this one ten seconds and discord will be available with the module so that you will get if any error 236 00:19:40,930 --> 00:19:42,990 then you can correct that one. 237 00:19:43,250 --> 00:19:44,740 So thanks for watching. 238 00:19:44,740 --> 00:19:46,350 We are done with this one. 239 00:19:46,510 --> 00:19:47,580 I was in the next video.