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