manim-chess 0.0.34__tar.gz → 0.0.35__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {manim_chess-0.0.34 → manim_chess-0.0.35}/PKG-INFO +1 -1
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/board.py +6 -4
- {manim_chess-0.0.34 → manim_chess-0.0.35}/pyproject.toml +1 -1
- {manim_chess-0.0.34 → manim_chess-0.0.35}/LICENSE.txt +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/README.md +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/__init__.py +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/evaluation_bar.py +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/game_player.py +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/piece_svgs/bB.svg +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/piece_svgs/bK.svg +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/piece_svgs/bN.svg +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/piece_svgs/bP.svg +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/piece_svgs/bQ.svg +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/piece_svgs/bR.svg +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/piece_svgs/wB.svg +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/piece_svgs/wK.svg +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/piece_svgs/wN.svg +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/piece_svgs/wP.svg +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/piece_svgs/wQ.svg +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/piece_svgs/wR.svg +0 -0
- {manim_chess-0.0.34 → manim_chess-0.0.35}/manim_chess/pieces.py +0 -0
@@ -24,7 +24,11 @@ class Board(Mobject):
|
|
24
24
|
color_dark : ManimColor
|
25
25
|
The manim color of the dark squares
|
26
26
|
color_light : ManimColor
|
27
|
-
The manim color of the light squares
|
27
|
+
The manim color of the light squares
|
28
|
+
color_highlight_light : ManimColor
|
29
|
+
The manim color of the highlight on dark squares
|
30
|
+
color_highlight_dark : ManimColor
|
31
|
+
The manim color of the highlight on light squares
|
28
32
|
|
29
33
|
Methods:
|
30
34
|
-------
|
@@ -424,9 +428,7 @@ class Board(Mobject):
|
|
424
428
|
self.add(finished_arrow)
|
425
429
|
else:
|
426
430
|
arrow0 = Line(stroke_width=15, stroke_opacity=.8, fill_color=ARROW_COLOR, stroke_color=ARROW_COLOR)
|
427
|
-
arrow0.reset_endpoints_based_on_tip = lambda *args: None
|
428
431
|
arrow1 = Line(stroke_width=15, stroke_opacity=.8, fill_color=ARROW_COLOR, stroke_color=ARROW_COLOR)
|
429
|
-
arrow1.reset_endpoints_based_on_tip = lambda *args: None
|
430
432
|
|
431
433
|
if dir_y > 0:
|
432
434
|
buffer_y = np.array([0, 0.25, 0])
|
@@ -447,7 +449,7 @@ class Board(Mobject):
|
|
447
449
|
tip.move_to(tip_position + buffer_x)
|
448
450
|
else:
|
449
451
|
arrow0.set_points_as_corners([end_position - buffer_x, np.array([tip_position[0], end_position[1], 0])])
|
450
|
-
arrow1.set_points_as_corners([np.array([tip_position[0]
|
452
|
+
arrow1.set_points_as_corners([np.array([tip_position[0], end_position[1]+tip_buffer, 0]), tip_position + buffer_y])
|
451
453
|
tip = arrow1.create_tip()
|
452
454
|
tip.move_to(tip_position + buffer_y)
|
453
455
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|