TeXMobject convenience subclass

This commit is contained in:
Ben Hambrecht
2018-05-02 17:17:34 +02:00
parent 055fc1536c
commit 51129b51ba

View File

@ -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)
##########