mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 13:34:19 +08:00
Halfway through eop/independence project
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user