mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +08:00
Added GrowFromEdge
This commit is contained in:
@ -188,6 +188,13 @@ class GrowFromCenter(GrowFromPoint):
|
||||
GrowFromPoint.__init__(self, mobject, mobject.get_center(), **kwargs)
|
||||
|
||||
|
||||
class GrowFromEdge(GrowFromPoint):
|
||||
def __init__(self, mobject, edge, **kwargs):
|
||||
GrowFromPoint.__init__(
|
||||
self, mobject, mobject.get_critical_point(edge), **kwargs
|
||||
)
|
||||
|
||||
|
||||
class GrowArrow(GrowFromPoint):
|
||||
def __init__(self, arrow, **kwargs):
|
||||
GrowFromPoint.__init__(self, arrow, arrow.get_start(), **kwargs)
|
||||
|
Reference in New Issue
Block a user