Skip to content

Commit 8e50adf

Browse files
authored
Merge pull request #8 from jeertmans/fix-shape
fix(bug): allows shape to be 2 or 3 dims
2 parents c243fe3 + d583d59 commit 8e50adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manim_slides/present.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def __init__(self, presentations, config, start_paused=False, fullscreen=False):
199199
)
200200

201201
def resize_frame_to_screen(self, frame: np.ndarray):
202-
frame_height, frame_width = frame.shape
202+
frame_height, frame_width = frame.shape[:2]
203203

204204
scale_height = self.screen_height / frame_height
205205
scale_width = self.screen_width / frame_width

0 commit comments

Comments
 (0)