mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
quick rgb-should-be-numpy-array bug fix
This commit is contained in:
parent
c7389e008d
commit
2322018875
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ class Mobject(object):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def fade_to(self, color, alpha):
|
def fade_to(self, color, alpha):
|
||||||
self.rgbs = interpolate(self.rgbs, Color(color).rgb, alpha)
|
self.rgbs = interpolate(self.rgbs, np.array(Color(color).rgb), alpha)
|
||||||
for mob in self.sub_mobjects:
|
for mob in self.sub_mobjects:
|
||||||
mob.fade_to(color, alpha)
|
mob.fade_to(color, alpha)
|
||||||
return self
|
return self
|
||||||
|
|
Loading…
Add table
Reference in a new issue