반응형
There are 3 classes for text and equation in Manim.
- Text
- TexMobject
- TextMobject
Text class can only handle normal characters, not formulas. Instead, you can specify and use all fonts on your PC, and rendering is fast. (Rendering: collect multiple scenes into a video)
TexMobject class is a formula-only class. All the passed strings are treated as LaTex formula strings.
LaTex expression: On a computer, a method of expressing a formula using promised keywords. a2 is expressed as 'a^2'
TextMobject class recognizes the string received as an argument as plain text, and in the case of LaTex string, it can be expressed between $ and $.
It is convenient to use Text when dealing with normal characters without a formula such as "Hello World".
It is convenient to use TexMobject when there are only formulas and English characters.
If you need to use formulas and text, you should use TextMobject.
[05-2-A] Text: for general text string
[05-2-B]TexMobject: for equation
[05-2-C] TextMobject: for Equation and Text
Next: [05-2-A] Text: for general text string
Go To: [99] Table of Contents
반응형
'Programming > Manim Lectures' 카테고리의 다른 글
[05-2-B]TexMobject: for equation (0) | 2020.06.06 |
---|---|
[05-2-A] Text: for general text string (0) | 2020.06.06 |
[05-1-F]Status methods: copy, save_state, restore (0) | 2020.06.05 |
[05-1-E]Shape changing methods: scale, rotate (0) | 2020.06.05 |
[05-1-D]Coloring methods: set_color, set_color_by_gradient (0) | 2020.06.05 |