Up to formal definition of linearity in EoLA chapter 3

This commit is contained in:
Grant Sanderson
2016-07-22 18:45:34 -07:00
parent 46e5dbfa14
commit 17505d4d9e
8 changed files with 244 additions and 77 deletions

View File

@ -314,7 +314,7 @@ class Mobject(object):
start = color_to_rgb(mob.get_color())
end = color_to_rgb(color)
new_rgb = interpolate(start, end, alpha)
mob.highlight(Color(rgb = new_rgb))
mob.highlight(Color(rgb = new_rgb), family = False)
return self
def fade(self, darkness = 0.5):