Move where the Mobject.animate method lives

This commit is contained in:
Grant Sanderson
2021-02-10 13:49:09 -08:00
parent 4ff876b536
commit 17b2efeb71

View File

@ -80,11 +80,6 @@ class Mobject(object):
if self.depth_test:
self.apply_depth_test()
@property
def animate(self):
# Borrowed from https://github.com/ManimCommunity/manim/
return _AnimationBuilder(self)
def __str__(self):
return self.__class__.__name__
@ -119,6 +114,11 @@ class Mobject(object):
self.uniforms[key] = uniforms[key] # Copy?
return self
@property
def animate(self):
# Borrowed from https://github.com/ManimCommunity/manim/
return _AnimationBuilder(self)
# Only these methods should directly affect points
def resize_points(self, new_length, resize_func=resize_array):