mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Added GrowFromEdge
This commit is contained in:
parent
5886f4746e
commit
aa5e1df5b2
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue