mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 14:37:47 +00:00
init_point -> reset_points
This commit is contained in:
parent
da792ef2d9
commit
eeff860588
3 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue