A community-maintained Python framework for creating mathematical animations.
Fix to allow for passing height only with -r flag (#395)
Philip Enchin3059748c6638
diff --git a/manim/config.py b/manim/config.pyindex 01f0adbc8..0e314af12 100644--- a/manim/config.py+++ b/manim/config.py@@ -91,7 +91,8 @@ def _parse_config(config_parser, args):height_str, width_str = args.resolution.split(",")height, width = int(height_str), int(width_str)else:- height, width = int(args.resolution), int(16 * height / 9)+ height = int(args.resolution)+ width = int(16 * height / 9)config.update({"pixel_height": height, "pixel_width": width})# Handle the -c (--background_color) flag