mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
ShrinkToCenter
This commit is contained in:
parent
74d25d50b1
commit
8c7dbe8efa
1 changed files with 8 additions and 0 deletions
|
@ -95,6 +95,14 @@ class SpinInFromNothing(GrowFromCenter):
|
||||||
"interpolation_function" : counterclockwise_path()
|
"interpolation_function" : counterclockwise_path()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class ShrinkToCenter(Transform):
|
||||||
|
def __init__(self, mobject, **kwargs):
|
||||||
|
Transform.__init__(
|
||||||
|
self, mobject,
|
||||||
|
Point(mobject.get_center()),
|
||||||
|
**kwargs
|
||||||
|
)
|
||||||
|
|
||||||
class ApplyMethod(Transform):
|
class ApplyMethod(Transform):
|
||||||
def __init__(self, method, *args, **kwargs):
|
def __init__(self, method, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue