Allowed color arg to be interpreted as setting fill_color in TexMobjects

This commit is contained in:
Sridhar Ramesh
2018-02-21 17:12:23 -08:00
parent 9927f22645
commit c036cfe823

View File

@@ -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]