본문 바로가기

Programming/Manim Lectures

[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 from one side, and 'FadeIn' gradually makes objects appear on the screen.

 

All of these animations are created by inheriting the Animation class, and there are several classes that can express the effects of creating objects, transforming, emphasizing, and moving effects.

 

We will discuss these animation classes from the next page.

 

There are about 70 classes in the Animation series in Manim, but it is difficult to understand these classes as an inheritance relationship between classes. Due to the inheritance relationship of the class, the function association is poor.

Rather, it can be classified more systematically by classifying them with the functions of the class, so this book describes classes as five groups of creation, emphasis, transformation, move/rotation and grouping.

 

Before looking at each detailed animation class, let's start with the Animation class, which is the ancestor of the all animation classes.

 


Next: [06-1-A] Animation Class and Rate Function

 

[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..

infograph.tistory.com

Go To: [99] Table of Contents

반응형

'Programming > Manim Lectures' 카테고리의 다른 글

[06-1-B] Animation : Creation series  (0) 2020.06.09
[06-1-A] Animation Class and Rate Function  (2) 2020.06.09
[06] Animation  (0) 2020.06.09
[05-5-E] Scene for Graph: GraphScene  (0) 2020.06.07
[05-5-D] Grid Background: NumberPlane  (0) 2020.06.07