Renamed 'highlight' to 'set_color'

This commit is contained in:
Grant Sanderson
2018-03-30 11:51:31 -07:00
parent 3ec4d89e10
commit 618590bee1
103 changed files with 3909 additions and 3910 deletions

View File

@ -78,12 +78,13 @@ class VMobject(Mobject):
family = family
)
def highlight(self, color, family = True):
def set_color(self, color, family = True):
self.set_style_data(
stroke_color = color,
fill_color = color,
family = family
)
self.color = color
return self
def match_style(self, vmobject):
@ -150,7 +151,7 @@ class VMobject(Mobject):
def color_using_background_image(self, background_image_file):
self.background_image_file = background_image_file
self.highlight(WHITE)
self.set_color(WHITE)
for submob in self.submobjects:
submob.color_using_background_image(background_image_file)
return self