Change size and other properties of TextMobjects
See original GitHub issueHi,
I have been trying to create to make some changes to the text I write on screen using TextMobjects. Here is a sample line:
final_line = TextMobject(r"${S1 \times R1} \over {S1 + R1}$", color=ORANGE)
The color is the only property I could change for this TextMobject. I tried setting size=0.5
. However, it did not have any effect. What about aligning the text?
I looked around for a couple of hours to find examples for positioning the text and found out about Vgroup
and arrange
.
The arrange
method solved the alignment issue. However, I still couldn’t figure out how to change size or other properties.
Is there a central source of information where I can read about properties like arrange
and the parameters they take etc. and objects like Vgroup
?
Manim does have a lot of classes, methods, and parameters. However, I can only find about them from working examples after a lot of searching.
Is there a place where I can read about the whole library when I want to figure out how to do things?
Thanks. 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top GitHub Comments
The TextMobject is a subclass of SVGMobject, and SVGMobject is a subclass of VMobject, and VMobject is a subclass of Mobject.
So TextMobject has all methods which Mobject, VMobject and SVGMobject have. Then you can find all methods in
mobject.py, types/vectorized_mobject.py, svg/svg_mobject.py
.manim has a clear structure of Class inheritance, I made a mind map of the structure, you can see it at here
I managed to align the text to left by using
\raggedright
.