Skip to content

Commit 9f29fdf

Browse files
committed
add graphical unit test for custom arrow tips
1 parent 5b6f3aa commit 9f29fdf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Binary file not shown.

tests/test_graphical_units/test_geometry.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ def construct(self):
2929
self.play(Animation(a))
3030

3131

32+
class CustomDoubleArrowTest(Scene):
33+
def construct(self):
34+
from manim.mobject.geometry import ArrowCircleTip, ArrowSquareFilledTip
35+
a = DoubleArrow(np.array([-1, -1, 0]), np.array([1, 1, 0]),
36+
tip_shape_start=ArrowCircleTip,
37+
tip_shape_end=ArrowSquareFilledTip)
38+
self.play(Animation(a))
39+
40+
3241
class CircleTest(Scene):
3342
def construct(self):
3443
circle = Circle()

0 commit comments

Comments
 (0)