Halfway through eop/independence project

This commit is contained in:
Grant Sanderson
2017-07-20 13:37:12 -07:00
parent 820ed83635
commit 62a7df7075
7 changed files with 1305 additions and 16 deletions

View File

@ -161,6 +161,11 @@ class TexMobject(SVGMobject):
part.highlight(color)
return self
def highlight_by_tex_to_color_map(self, tex_to_color_map):
for tex, color in tex_to_color_map.items():
self.highlight_by_tex(tex, color)
return self
def index_of_part(self, part):
split_self = self.split()
if part not in split_self: