mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
ShrinkToCenter
This commit is contained in:
@ -95,6 +95,14 @@ class SpinInFromNothing(GrowFromCenter):
|
||||
"interpolation_function" : counterclockwise_path()
|
||||
}
|
||||
|
||||
class ShrinkToCenter(Transform):
|
||||
def __init__(self, mobject, **kwargs):
|
||||
Transform.__init__(
|
||||
self, mobject,
|
||||
Point(mobject.get_center()),
|
||||
**kwargs
|
||||
)
|
||||
|
||||
class ApplyMethod(Transform):
|
||||
def __init__(self, method, *args, **kwargs):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user