mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 17:29:06 +08:00
GrowFromCenter transforms the mobject itself
This commit is contained in:
@ -83,12 +83,11 @@ class CounterclockwiseTransform(Transform):
|
||||
|
||||
class GrowFromCenter(Transform):
|
||||
def __init__(self, mobject, **kwargs):
|
||||
Transform.__init__(
|
||||
self,
|
||||
Point(mobject.get_center()),
|
||||
mobject,
|
||||
**kwargs
|
||||
)
|
||||
target = mobject.copy()
|
||||
point = Point(mobject.get_center())
|
||||
mobject.replace(point)
|
||||
mobject.highlight(point.get_color())
|
||||
Transform.__init__(self, mobject, target, **kwargs)
|
||||
|
||||
class SpinInFromNothing(GrowFromCenter):
|
||||
DEFAULT_CONFIG = {
|
||||
|
Reference in New Issue
Block a user