본문 바로가기

Programming

(165)
[06-1-G] Animation : Transformation series (3/3) It is the transformation animations that are performed by some method or function. Class Parameters Explanation ApplyMethod mobject, *args, **kwargs Animation effect where a method of mobject is performed. The *args is the parameter for method, and *8kwargs is CONFIG parameter dictionary for the ApplyMethod. ApplyPointwiseFunction function, mobject, **kwargs Animate the transformation by applyin..
[06-1-F] Animation : Transformation series (2/3) CyclicReplace class object > Animation > Transform > CyclicReplace manimlib.animation.transform.CyclicReplace(self, *mobjects, **kwargs) Move the given mobjects one by one. The first one changes to the second, the second to the third, the last one to the first, and so on, as if on a circular cycle. self.play(CyclicReplace(tri, square, circle), run_time=3) CONFIG = { "path_arc": 90 * DEGREES, } P..
[06-1-E] Animation : Transformation series (1/3) When there are two objects A and B, we will learn about the animation effect that A gradually changes to B. Class Parameters Explanation MoveAlongPath mobject, target_mobject=None mobject is converted to the location/form of target_mobject. At this time, the name of the object that has changed and remains is mobject not target_mobject. ClockwiseTransform mobject, target_mobject=None mobject is c..
[06-1-D] Animation : Move/Rotating series Animation that moves and rotates objects. Class Parameters Explanation MoveAlongPath mobject, path Move mobject along the path Rotate mobject, angle=PI, asis=OUT Rotate mobject by angle about axis Rotating mobject Rotate mobject by radians about the axis TurnInsideOut mobject Flip mobject back and forth by path_arc=TAU/4 Animation classes related to move/rotating have different parameters used f..
[06-1-C] Animation : Indicating series The Indicating series animation class is an animation that draws attention to an object displayed on the screen while blinking it. Indicating related classes are as follows. Class Parameters Explanation ShowCreationThenDestruction mobject Draw an object for a short time and then make it disappear Indicate mobject Make the object blink by the scale of the scale_factor and return it to the origina..
[06-1-B] Animation : Creation series Animations that creates an object on the screen. There are quite a few classes in this category, so we will divide them into 1)Showing 2)Fading 3)Growing. The use of animation classes is simple because you can specify the class you want to use in the play method. Therefore, learning about animation classes only needs to know what effect these classes have, so you can focus on the effects of thos..
[06-1-A] Animation Class and Rate Function Animation class object > Animation manimlib.animaion.animation.Animation(self, mobject, **kwargs) This is the ancestor class of all classes in charge of animation. Common basic methods for animation are defined. In most cases, it is common to animate using subclasses of this Animation class. However, you can use the Animation class as it is. In that case, the object is simply displayed on the sc..
[06-1] Animation by Classes We have already made a video using the Animation class in the previous chapter. For example, Write/ShowCreation/FadeIn in self.play(Write(text)), self.play(ShowCreation(graph)) and self.play(FadeIn(graph)) are Animation class. 'Write' is an animation that writes letters one after another as if writing them with a pen on a blackboard, 'ShowCreation' displays something like a shape on the screen f..
[06] Animation Animation in Manim is implemented by changing the shape of the object for each frame of the video. To change the shape of an object for each frame is to make the position/color of each object different. This can be done by moving objects (to_edge, etc.), color conversion methods (set_color, etc.) or Animation classes. This chapter describes how to implement animation in Manim by dividing it into..
[05-5-E] Scene for Graph: GraphScene GraphScene is a scene specialized for graphs. You can create your own coordinate system by specifying the x-axis and y-axis properties with the CONFIG value, and get a graph by the get_graph method. GraphScene class object > Container > Scene > GraphScene manimlib.scene.scene.GraphScene(self, **kwargs) You can easily create the x-axis and y-axis by specifying the CONFIG value, and you can create..