Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

TeXMobject convenience subclass

Ben Hambrecht51129b51ba84
diff --git a/mobject/svg/tex_mobject.py b/mobject/svg/tex_mobject.py
index 2fbe11f3b..cbb57a72e 100644
--- a/mobject/svg/tex_mobject.py
+++ b/mobject/svg/tex_mobject.py
@@ -275,6 +275,14 @@ class BulletedList(TextMobject):
else:
other_part.set_fill(opacity=opacity)
+
+class TexMobjectFromPresetString(TexMobject):
+
+ def __init__(self, **kwargs):
+ digest_config(self, kwargs)
+ TexMobject.__init__(self, self.tex, **kwargs)
+ self.set_color(self.color)
+
##########