mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Move where the Mobject.animate method lives
This commit is contained in:
parent
4ff876b536
commit
17b2efeb71
1 changed files with 5 additions and 5 deletions
|
@ -80,11 +80,6 @@ class Mobject(object):
|
||||||
if self.depth_test:
|
if self.depth_test:
|
||||||
self.apply_depth_test()
|
self.apply_depth_test()
|
||||||
|
|
||||||
@property
|
|
||||||
def animate(self):
|
|
||||||
# Borrowed from https://github.com/ManimCommunity/manim/
|
|
||||||
return _AnimationBuilder(self)
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.__class__.__name__
|
return self.__class__.__name__
|
||||||
|
|
||||||
|
@ -119,6 +114,11 @@ class Mobject(object):
|
||||||
self.uniforms[key] = uniforms[key] # Copy?
|
self.uniforms[key] = uniforms[key] # Copy?
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
@property
|
||||||
|
def animate(self):
|
||||||
|
# Borrowed from https://github.com/ManimCommunity/manim/
|
||||||
|
return _AnimationBuilder(self)
|
||||||
|
|
||||||
# Only these methods should directly affect points
|
# Only these methods should directly affect points
|
||||||
|
|
||||||
def resize_points(self, new_length, resize_func=resize_array):
|
def resize_points(self, new_length, resize_func=resize_array):
|
||||||
|
|
Loading…
Add table
Reference in a new issue