00:13This video explains the position of text or characters written in Manim programming language.
00:18Python. Manim is based on the rectangular coordinate system of 4 quadrants and is composed of 8
00:25by 14 squares. To move to a certain position, it will be vectorially coordinated
00:32X, Y, Z, in Z will always be 0. This is how it works for programming.
00:45Okay, we start with a new file, called test 33, inside this, we type, from
00:52`manim import asterisk`, this calls the Manim library. With DevConstruct,
00:59Self, we construct the scene. We declare a constant named C1, which is equal to the coordinate system,
01:14also called a number plane which you can use to position moving objects on the screen.
01:20MassAdCoordinates, to establish numbering in the coordinate system.
01:26With self.watt5 we set the time to 5 seconds. We write self.playdate and write the constant C1.
01:38The previous exercise was to establish the coordinate plane, we continue with the next exercise
01:44It's for setting the position of text, or characters. So we have, we write, class the
01:50Lesson and scene. We write DevConstruct self to build the scene.
02:04The previous exercise was to establish the coordinate plane.
02:11We set the constant C2 equal to number plane, and to D.coordinates, to set the coordinate plane.
02:23We write self.playdate C2, this to write C2.
02:41We typed self.watt, with a time of 5 seconds.
02:55We establish the constant C3 is equal to text within this in quotes goes, text 1.
03:02Moveton helps us to establish the position.
03:07With np, point array is a vector of position minus 5, 3, 0.
03:23We write self.playdate C3, this to write C3.
03:31We typed self.watt, with a time of 5 seconds.
03:38Here we copy the programming sequence for the other quadrants, swapping the constants C4 through C6.
03:52Thus, text 2, with moveton we can establish the position, with np, point array is a position vector
03:595, 3, 0.
04:11Text 3, with moveton we can establish the position, with np, point array is a vector of position 5,
04:18minus 3, 0.
04:26Text 4, with moveton we can establish the position, with np, point array is a position vector minus
04:335, minus 3, 0.
04:44Now, to avoid possible errors, you must verify that the video file names do not match the
04:51names of the lessons or names of each programming code,
04:54If there is already a video titled "Lessons 2" and the new program is also titled "Lessons 2", it cannot be overwritten.
04:59Since it is a video, it is also necessary to check for programming signs such as braces, brackets, etc.
05:06Thus, changing the programming names to lessons 7 and lessons 9, we proceed to compilation, save, and move to the terminal.
05:14We write manim less video quality pql in the filename python, lessons 7.
05:41We observe the coordinate axis in video.
05:50We proceed to compilation, save, go to terminal, and type `manim minus video quality pql` in your filename
05:58Python, pay attention to the name of your file, and the name of the code in this case will be lessons 9.
06:11We observed the coordinate axis in video, and the different vector positions of the texts.
06:32That's all, if you found the video helpful, don't forget to subscribe.
Comentarios