Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Allowed color arg to be interpreted as setting fill_color in TexMobjects

Sridhar Rameshc036cfe82396
diff --git a/mobject/tex_mobject.py b/mobject/tex_mobject.py
index 650362f0b..7900e7945 100644
--- a/mobject/tex_mobject.py
+++ b/mobject/tex_mobject.py
@@ -41,6 +41,10 @@ class TexMobject(SVGMobject):
}
def __init__(self, *args, **kwargs):
digest_config(self, kwargs, locals())
+
+ if "color" in kwargs.keys() and not "fill_color" in kwargs.keys():
+ self.fill_color = kwargs["color"]
+
##TODO, Eventually remove this
if len(args) == 1 and isinstance(args[0], list):
self.args = args[0]