From c036cfe8239658969c6b05ceffcaf794dbc011a8 Mon Sep 17 00:00:00 2001 From: Sridhar Ramesh Date: Wed, 21 Feb 2018 17:12:23 -0800 Subject: [PATCH] Allowed color arg to be interpreted as setting fill_color in TexMobjects --- mobject/tex_mobject.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mobject/tex_mobject.py b/mobject/tex_mobject.py index 650362f0..7900e794 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]