From e9da441efc011aef82fefa82ca4a6d1f8c1a8325 Mon Sep 17 00:00:00 2001 From: tebarius Date: Sat, 14 Dec 2024 19:03:50 +0100 Subject: [PATCH] 14 with anim-gif --- 14/14-2-sol-video-creator2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14/14-2-sol-video-creator2.py b/14/14-2-sol-video-creator2.py index ea3caf2..d2a9c61 100644 --- a/14/14-2-sol-video-creator2.py +++ b/14/14-2-sol-video-creator2.py @@ -79,7 +79,7 @@ if __name__ == "__main__": out.write(cv2_image) break elif sec > SOLUTION-15: - for _ in range(sec+15-SOLUTION): + for _ in range(sec-(SOLUTION-15)): gif_anim.append(img_with_num) cv2_image = pil_to_cv2(img_with_num) out.write(cv2_image)