Copying style and position of TexMobject
See original GitHub issueI saw it somewhere in the manim tutorial by TheoremofBeethoven but I cannot find it anymore.
I have the following TexMobject:
formula = TexMobject("2x", "=", "8")
formula.move_to(DOWN*2)
formula[0].set_color(RED)
formula[2].set_color(BLUE)
Now the seperate parts are already individually aligned on the screen. Now I want to change formula[0]
to for example x
, but with the same style and position as it currently is.
How do I do that most efficiently? I could create a new TexMobject, then move it to formula[0]
and set the color again to RED, but I think you can copy all those attributes/properties, right?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
How to modify a copy of an object : r/manim - Reddit
I created a copy of and object and i would like to know how i can ... delta.next_to(equation,3*DOWN) solution=TexMobject("x_{1,2}","=","{-" ...
Read more >Aligning Text – manim Series: Part 6 - Talking Physics
We will first write a program to align elements of two equations but in a somewhat clunky fashion; this is not the most...
Read more >Moving and Copying Text and Objects - InformIT
Select the text or object(s) you want to move or copy. · (Optional) To copy, hold down the Ctrl key. · Position the...
Read more >What's new - manim documentation
Usage changes of new version manim¶ · Can be called by self.camera. · All methods of Mobject can be used, such as .shift()...
Read more >Novice Life: Persistent trouble getting manim to run tikz
Why are you using TexMobject instead TextMobject ? ... level 2/.style={sibling distance=2.5cm}, level 3/.style={sibling distance=1cm}] \node ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is exactly it! Thank you! I will now close this issue.
I don’t know if I understood your problem correctly; I think you’re looking for
It makes the stroke, the fill, and the background-related properties the same.