mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-05-20 03:57:38 +08:00
fix(bug): allows shape to be 2 or 3 dims
This commit is contained in:
@ -199,7 +199,7 @@ class Display:
|
||||
)
|
||||
|
||||
def resize_frame_to_screen(self, frame: np.ndarray):
|
||||
frame_height, frame_width = frame.shape
|
||||
frame_height, frame_width = frame.shape[:2]
|
||||
|
||||
scale_height = self.screen_height / frame_height
|
||||
scale_width = self.screen_width / frame_width
|
||||
|
Reference in New Issue
Block a user