MCPcopy
hub / github.com/ManimCommunity/manim / test_chained_animate

Function test_chained_animate

tests/module/animation/test_animate.py:21–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20
21def test_chained_animate():
22 s = Square()
23 scale_factor = 2
24 direction = np.array((1, 1, 0))
25 anim = s.animate.scale(scale_factor).shift(direction).build()
26 assert anim.mobject.target.width == scale_factor * s.width
27 assert (anim.mobject.target.get_center() == direction).all()
28
29
30def test_overridden_animate():

Callers

nothing calls this directly

Calls 5

SquareClass · 0.90
buildMethod · 0.45
shiftMethod · 0.45
scaleMethod · 0.45
get_centerMethod · 0.45

Tested by

no test coverage detected