Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

init_point -> reset_points

Grant Sandersoneeff8605882e
diff --git a/mobject/types/image_mobject.py b/mobject/types/image_mobject.py
index 455607236..2cfdc6c85 100644
--- a/mobject/types/image_mobject.py
+++ b/mobject/types/image_mobject.py
@@ -30,7 +30,7 @@ class AbstractImageMobject(Mobject):
# Likely to be implemented in subclasses, but no obgligation
pass
- def init_points(self):
+ def reset_points(self):
# Corresponding corners of image are fixed to these 3 points
self.points = np.array([
UP + LEFT,
diff --git a/mobject/types/point_cloud_mobject.py b/mobject/types/point_cloud_mobject.py
index 148dd9401..1a413ba91 100644
--- a/mobject/types/point_cloud_mobject.py
+++ b/mobject/types/point_cloud_mobject.py
@@ -17,7 +17,7 @@ class PMobject(Mobject):
"stroke_width": DEFAULT_STROKE_WIDTH,
}
- def init_points(self):
+ def reset_points(self):
self.rgbas = np.zeros((0, 4))
self.points = np.zeros((0, 3))
return self
diff --git a/old_projects/music_and_measure.py b/old_projects/music_and_measure.py
index f074979c8..853d6187c 100644
--- a/old_projects/music_and_measure.py
+++ b/old_projects/music_and_measure.py
@@ -144,7 +144,7 @@ class Vibrate(Animation):
Animation.__init__(self, Mobject1D(color = self.color), **kwargs)
def update_mobject(self, alpha):
- self.mobject.init_points()
+ self.mobject.reset_points()
epsilon = self.mobject.epsilon
self.mobject.add_points([
[x*self.radius, self.func(x, alpha*self.run_time)+y, 0]