1 00:00:05,620 --> 00:00:11,290 Here even in this video we are going to learn some basics of total graphics that how you can draw some 2 00:00:11,290 --> 00:00:13,770 figures by using total graphics. 3 00:00:13,780 --> 00:00:17,470 So first of all some sources of error you may get. 4 00:00:17,470 --> 00:00:21,700 First thing is this one is a by default probability so it is not required to install this one. 5 00:00:21,700 --> 00:00:23,590 You just need to import this. 6 00:00:23,680 --> 00:00:30,750 After that one you can get something like memory allocation error did not able to create memory and 7 00:00:30,750 --> 00:00:36,900 that is because of the database we have installed in the last section because of that one that created 8 00:00:36,900 --> 00:00:43,200 separate Windows user or that most serious skill due to which data are too graphic not able to find 9 00:00:43,200 --> 00:00:49,290 the actual location for its window because total graphics require a window to create some drinks. 10 00:00:49,470 --> 00:00:54,360 So for that one just uninstall the database for a while and install that one. 11 00:00:55,990 --> 00:01:02,500 Now I'm going to prefer terminal for this one because this is the best for explaining this total graphics 12 00:01:03,310 --> 00:01:08,260 because they require something like creating drawings and moving difficult yet again and again. 13 00:01:08,260 --> 00:01:10,690 So for that this one is best. 14 00:01:10,690 --> 00:01:15,890 You can also use the atom and Jupiter the same now first of all. 15 00:01:16,120 --> 00:01:25,540 I'm creating a potential with Python 3 and then you need to import turtle as d and you can import this 16 00:01:25,540 --> 00:01:27,100 one with any name. 17 00:01:27,400 --> 00:01:29,820 Now few basics of that thing. 18 00:01:29,860 --> 00:01:35,080 First thing if you need to grow you require some any kind of paper or any kind of window where you can 19 00:01:35,080 --> 00:01:37,100 do like you're going to be doing it. 20 00:01:37,870 --> 00:01:39,370 So that's the effect here. 21 00:01:39,700 --> 00:01:46,780 For that one to get a window you can run any turtle Come on you will get into the most basic one we 22 00:01:46,780 --> 00:01:54,320 do for that one is go to so this command is something like If I had this goes a and this one is here 23 00:01:54,320 --> 00:01:55,120 at this point right. 24 00:01:56,090 --> 00:02:02,660 So it will be something from accesses and something from viruses and that are the coding nodes denoted 25 00:02:02,660 --> 00:02:04,370 by the pixels. 26 00:02:04,370 --> 00:02:04,970 Same here. 27 00:02:04,970 --> 00:02:10,610 This go refers to moving this closer to any particular position by using the coordinates. 28 00:02:10,670 --> 00:02:19,970 So if I pass something like here minus one drop and say minus entry I will get a pop up window with 29 00:02:19,970 --> 00:02:21,390 which I will get this goes. 30 00:02:21,530 --> 00:02:25,230 At this particular point minus hundred and minus hundred. 31 00:02:25,350 --> 00:02:31,080 So basically this was actually at this point and it got minus a hundred and minus hundred dead by creating 32 00:02:31,080 --> 00:02:32,980 a line the. 33 00:02:33,070 --> 00:02:35,510 So this is the most basic amount of total graphics. 34 00:02:35,620 --> 00:02:39,690 Without this one if you did not pass the parameter you will get error. 35 00:02:39,730 --> 00:02:48,700 Now if you change these values here again this one but something like C hundred and minus 10 it will 36 00:02:48,700 --> 00:02:51,940 get to that particular point as this one is there. 37 00:02:52,720 --> 00:03:01,690 If I do here two hundred or and plus then I get to so it will move according to you wherever you want 38 00:03:01,690 --> 00:03:03,510 to make this one. 39 00:03:03,560 --> 00:03:04,980 So this is the first basic. 40 00:03:05,440 --> 00:03:06,280 After that one. 41 00:03:06,380 --> 00:03:08,150 This one is creating a line with this one. 42 00:03:09,110 --> 00:03:14,570 So what if I need to create something here that is with this one but they're independent of each other 43 00:03:14,580 --> 00:03:16,550 like there's no connection in between them. 44 00:03:17,120 --> 00:03:18,360 So how can I do that. 45 00:03:18,740 --> 00:03:19,760 Because the lines are there. 46 00:03:20,660 --> 00:03:23,670 So for that when we had to come on bend down bend. 47 00:03:24,500 --> 00:03:31,660 So this state is known as bend down in which I am writing a line with my motion and there's another 48 00:03:31,750 --> 00:03:33,090 known as bend up. 49 00:03:33,310 --> 00:03:41,570 So for that I just do not bend up and pass dependencies and just hit return. 50 00:03:41,680 --> 00:03:47,330 And now if you move this one to any position say to go to say mine. 51 00:03:47,450 --> 00:03:51,420 So the 50 and minus 50. 52 00:03:51,550 --> 00:03:58,440 So now this is here without any line drawing here so by using this one you can get rid of the lines 53 00:03:58,450 --> 00:04:00,370 if you don't do not require that one. 54 00:04:00,430 --> 00:04:07,440 Now if you again need the lines you just do pan down panties and then hit Twitter. 55 00:04:07,520 --> 00:04:14,910 Now if you draw any line say go to 150 and minus 50 variable with a line. 56 00:04:16,260 --> 00:04:18,450 So now we have line answer. 57 00:04:18,450 --> 00:04:21,820 So this is how you can make line and get rid of debt. 58 00:04:22,340 --> 00:04:27,720 And it wouldn't talk more about this line then you can also change the color of this line by just simply 59 00:04:27,720 --> 00:04:29,080 did not color. 60 00:04:29,590 --> 00:04:32,880 And in that won't pass any color say blue. 61 00:04:32,880 --> 00:04:40,440 Now if you notice this one this gets blue collar now and if I say do something like this one in two 62 00:04:41,880 --> 00:04:52,880 250 or something like close at 80 they go 80 this one and this one say 350 or 250. 63 00:04:52,870 --> 00:05:02,930 They will go with the blue line so this is how you can change the line colors and after this one we 64 00:05:02,990 --> 00:05:03,640 have this one. 65 00:05:04,390 --> 00:05:06,810 Now if we talk about this line. 66 00:05:07,470 --> 00:05:08,920 So here this line is very slim. 67 00:05:08,920 --> 00:05:10,600 What if you need a ticket line. 68 00:05:11,110 --> 00:05:15,060 So for that one we have a command known as pen sites. 69 00:05:15,340 --> 00:05:22,420 So take your pen size in which you need to pass any value see I'm passing quality it through done. 70 00:05:22,430 --> 00:05:27,820 And now if you make any changes to any position say 50 80. 71 00:05:27,920 --> 00:05:30,780 David will this one already take line. 72 00:05:30,860 --> 00:05:43,020 Then again introduce that won't do any say to and now if you do the change here with 70 or so 30. 73 00:05:43,540 --> 00:05:45,880 David go with the wait in line. 74 00:05:47,140 --> 00:05:48,660 So that is how you can create the. 75 00:05:49,120 --> 00:05:55,710 So the change the size of this one after that one feel more basics like the speed of this one there 76 00:05:55,740 --> 00:05:57,760 it is moving a little slower. 77 00:05:58,060 --> 00:06:03,130 If you have noticed there like this one is 350 and tacky. 78 00:06:03,160 --> 00:06:05,530 So this one is a little slower. 79 00:06:05,530 --> 00:06:09,060 You can also increase the speed of this one by just deed or speed. 80 00:06:09,700 --> 00:06:15,400 And that is useful when we are working with a large number of motion at a time like walking in loops 81 00:06:16,440 --> 00:06:20,430 so if you increase the speed to any number of say 50. 82 00:06:21,510 --> 00:06:33,090 And now if you move this one to any particular value say minus 350 and with an angle of 40 I believe 83 00:06:33,090 --> 00:06:39,620 you do not have even noticed five and this one get up there because that is actually fast. 84 00:06:39,890 --> 00:06:45,310 And if I do this one 140 they go the deadline. 85 00:06:45,380 --> 00:06:51,120 So this is how you can actually increase or decrease the speed of this one after that one. 86 00:06:51,120 --> 00:06:56,930 What about the background like if you require a different color background so that when we have a command 87 00:06:57,480 --> 00:07:07,770 do not get screen and then pass defenses don't be color that is ignoring background color there you 88 00:07:07,770 --> 00:07:08,900 can pass any color. 89 00:07:08,940 --> 00:07:13,650 Say blue everybody don't blue. 90 00:07:14,060 --> 00:07:18,480 And we are going to turn into white. 91 00:07:18,480 --> 00:07:23,190 So I suggest you do write down these commands once you remember that then you will not required but 92 00:07:23,250 --> 00:07:25,240 in the beginning I believe you. 93 00:07:25,710 --> 00:07:32,120 It's better to have notes and you can also get these in the notes after the open. 94 00:07:32,150 --> 00:07:40,320 These are about these few last commands that are in basic are forward left and right. 95 00:07:40,320 --> 00:07:48,090 So this is we are actually going to some random points without any much knowledge in practical if you 96 00:07:48,090 --> 00:07:49,230 want to create any figure. 97 00:07:49,260 --> 00:07:55,530 So you do not go at Point two point because we do not require these points of this also do the coordinates 98 00:07:55,530 --> 00:07:59,480 of this point or this point or say this point. 99 00:07:59,520 --> 00:08:01,050 So for that one what will we do. 100 00:08:01,080 --> 00:08:06,050 We will just move this one into forward or in some directions. 101 00:08:06,360 --> 00:08:13,970 So to make this one for where you just try to load forward and then pass the land you require said 300. 102 00:08:14,280 --> 00:08:15,660 It will move in 300. 103 00:08:16,410 --> 00:08:21,390 Let me also reduce some speed because that's actually getting really fast. 104 00:08:21,420 --> 00:08:30,570 So just speed one now we go in forward direction with 300 more 300 terribly. 105 00:08:31,670 --> 00:08:36,940 And now what if I need this one at this point which I do not require. 106 00:08:37,020 --> 00:08:42,900 Remember the point of this one but actually I remember angle like this one is 90 degree but not the 107 00:08:42,900 --> 00:08:43,260 point. 108 00:08:43,710 --> 00:08:44,520 So what will I do. 109 00:08:44,520 --> 00:08:51,320 I will rotate its head so you can rotate the head by just to the left pass the angle see 90. 110 00:08:51,330 --> 00:08:52,370 This one goes upward. 111 00:08:52,800 --> 00:08:56,850 Now if you move this one forward sit with 30. 112 00:08:57,000 --> 00:08:58,930 This will go upward with the tactically. 113 00:08:59,020 --> 00:09:00,750 So a 30 picks up. 114 00:09:01,140 --> 00:09:09,150 And if I rotate this one into right now to test that line I required nineteen ninety one hundred and 115 00:09:09,150 --> 00:09:10,310 eighty degrees. 116 00:09:10,740 --> 00:09:15,730 So 180 days I go this one in the opposite direction is done. 117 00:09:16,680 --> 00:09:25,570 And if I do this one with one 30 day we go with that one just a little more here have intersected that 118 00:09:25,570 --> 00:09:25,830 line. 119 00:09:26,850 --> 00:09:29,430 So that's how you can vote with this start. 120 00:09:30,270 --> 00:09:36,210 So I believe I have told you most of the basic commands that you are required to work with this class. 121 00:09:37,020 --> 00:09:42,290 And by using these you can create any figure here that you will learn in the next videos. 122 00:09:42,330 --> 00:09:43,220 So thanks for watching. 123 00:09:43,230 --> 00:09:44,670 This is all about the basics. 124 00:09:44,670 --> 00:09:46,590 I hope you enjoyed this one. 125 00:09:46,590 --> 00:09:47,490 Soon the next video.