Halfway through dot products

This commit is contained in:
Grant Sanderson
2016-08-19 15:54:16 -07:00
parent fa6fa38a00
commit f0bd594428
4 changed files with 557 additions and 7 deletions

View File

@ -304,8 +304,9 @@ class Mobject(object):
"""
raise Exception("Not implemented")
def gradient_highlight(self, start_color, end_color):
raise Exception("Not implemented")
def gradient_highlight(self, *colors):
self.submobject_gradient_highlight(*colors)
return self
def submobject_gradient_highlight(self, *colors):
if len(colors) == 0: