Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added match_background_image_file

Grant Sanderson22c4ddb0041c
diff --git a/mobject/vectorized_mobject.py b/mobject/vectorized_mobject.py
index ef482bbd2..603a28673 100644
--- a/mobject/vectorized_mobject.py
+++ b/mobject/vectorized_mobject.py
@@ -165,6 +165,10 @@ class VMobject(Mobject):
def get_background_image_file(self):
return self.background_image_file
+ def match_background_image_file(self, vmobject):
+ self.color_using_background_image(vmobject.get_background_image_file())
+ return self
+
## Drawing
def start_at(self, point):
if len(self.points) == 0: