Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fixed ImageMobject fade bug

Grant Sanderson81a906f6839b
diff --git a/mobject/types/image_mobject.py b/mobject/types/image_mobject.py
index 2cfdc6c85..5607d9084 100644
--- a/mobject/types/image_mobject.py
+++ b/mobject/types/image_mobject.py
@@ -96,7 +96,7 @@ class ImageMobject(AbstractImageMobject):
self.pixel_array[:, :, 3] = int(255 * alpha)
return self
- def fade(self, darkness=0.5):
+ def fade_no_recurse(self, darkness=0.5):
self.set_opacity(1 - darkness)
return self