A community-maintained Python framework for creating mathematical animations.
Fix: correct tuple order to (height, width) and map height→pixel_height, width→pixel_width (#4440)
Nikhil Arora7ffdf04dcb67
diff --git a/manim/cli/init/commands.py b/manim/cli/init/commands.pyindex 197e97bf7..e95594996 100644--- a/manim/cli/init/commands.py+++ b/manim/cli/init/commands.py@@ -29,7 +29,7 @@ CFG_DEFAULTS = {"background_color": "BLACK","background_opacity": 1,"scene_names": "Default",- "resolution": (854, 480),+ "resolution": (480, 854),}__all__ = ["select_resolution", "update_cfg", "project", "scene"]@@ -76,8 +76,8 @@ def update_cfg(cfg_dict: dict[str, Any], project_cfg_path: Path) -> None:cli_config = config["CLI"]for key, value in cfg_dict.items():if key == "resolution":- cli_config["pixel_width"] = str(value[0])- cli_config["pixel_height"] = str(value[1])+ cli_config["pixel_height"] = str(value[0])+ cli_config["pixel_width"] = str(value[1])else:cli_config[key] = str(value)