Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

fix wrong -r flag

leotrs4ae900ab4b3a
diff --git a/manim/config/utils.py b/manim/config/utils.py
index 4f03815de..c029207b3 100644
--- a/manim/config/utils.py
+++ b/manim/config/utils.py
@@ -401,9 +401,9 @@ class ManimConfig(MutableMapping):
rflag = args.resolution
if rflag is not None:
try:
- w, h = rflag.split(",")
- self.pixel_width = int(w)
+ h, w = rflag.split(",")
self.pixel_height = int(h)
+ self.pixel_width = int(w)
except ValueError:
raise ValueError(
f'invalid argument {rflag} for -r flag (must have a comma ",")'