Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

fix: corrected parameters and enhanced the description of interpolate_color within image_mobject (#2919)

Owen Samuelbf3867b932ba
diff --git a/manim/mobject/types/image_mobject.py b/manim/mobject/types/image_mobject.py
index 80b875599..c24584159 100644
--- a/manim/mobject/types/image_mobject.py
+++ b/manim/mobject/types/image_mobject.py
@@ -235,17 +235,17 @@ class ImageMobject(AbstractImageMobject):
return self
def interpolate_color(self, mobject1, mobject2, alpha):
- """Interpolates an array of pixel color values into another array of
- equal size.
+ """Interpolates the array of pixel color values from one ImageMobject
+ into an array of equal size in the target ImageMobject.
Parameters
----------
mobject1 : ImageMobject
The ImageMobject to transform from.
- mobject1 : ImageMobject
-
+ mobject2 : ImageMobject
The ImageMobject to transform into.
+
alpha : float
Used to track the lerp relationship. Not opacity related.
"""