mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
63 lines
1.3 KiB
Python
63 lines
1.3 KiB
Python
from __future__ import annotations
|
|
|
|
from manim import *
|
|
from manim.utils.testing.frames_comparison import frames_comparison
|
|
|
|
__module_test__ = "indication"
|
|
|
|
|
|
@frames_comparison(last_frame=False)
|
|
def test_FocusOn(scene):
|
|
square = Square()
|
|
scene.add(square)
|
|
scene.play(FocusOn(square))
|
|
|
|
|
|
@frames_comparison(last_frame=False)
|
|
def test_Indicate(scene):
|
|
square = Square()
|
|
scene.add(square)
|
|
scene.play(Indicate(square))
|
|
|
|
|
|
@frames_comparison(last_frame=False)
|
|
def test_Flash(scene):
|
|
square = Square()
|
|
scene.add(square)
|
|
scene.play(Flash(ORIGIN))
|
|
|
|
|
|
@frames_comparison(last_frame=False)
|
|
def test_Circumscribe(scene):
|
|
square = Square()
|
|
scene.add(square)
|
|
scene.play(Circumscribe(square))
|
|
scene.wait()
|
|
|
|
|
|
@frames_comparison(last_frame=False)
|
|
def test_ShowPassingFlash(scene):
|
|
square = Square()
|
|
scene.add(square)
|
|
scene.play(ShowPassingFlash(square.copy()))
|
|
|
|
|
|
@frames_comparison(last_frame=False)
|
|
def test_ShowCreationThenFadeOut(scene):
|
|
square = Square()
|
|
scene.add(square)
|
|
scene.play(ShowCreationThenFadeOut(square.copy()))
|
|
|
|
|
|
@frames_comparison(last_frame=False)
|
|
def test_ApplyWave(scene):
|
|
square = Square()
|
|
scene.add(square)
|
|
scene.play(ApplyWave(square))
|
|
|
|
|
|
@frames_comparison(last_frame=False)
|
|
def test_Wiggle(scene):
|
|
square = Square()
|
|
scene.add(square)
|
|
scene.play(Wiggle(square))
|