Skip to content

Commit e5bca5f

Browse files
committed
Add 4K option
1 parent 06c73e1 commit e5bca5f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

manimlib/config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ def parse_cli():
5050
action="store_true",
5151
help="Render at a high quality",
5252
),
53+
parser.add_argument(
54+
"--four_k",
55+
action="store_true",
56+
help="Render at a 4K quality",
57+
),
5358
parser.add_argument(
5459
"-g", "--save_pngs",
5560
action="store_true",
@@ -214,6 +219,8 @@ def get_camera_configuration(args):
214219
camera_config.update(manimlib.constants.MEDIUM_QUALITY_CAMERA_CONFIG)
215220
elif args.high_quality:
216221
camera_config.update(manimlib.constants.HIGH_QUALITY_CAMERA_CONFIG)
222+
elif args.four_k:
223+
camera_config.update(manimlib.constants.FOURK_CAMERA_CONFIG)
217224
else:
218225
camera_config.update(manimlib.constants.PRODUCTION_QUALITY_CAMERA_CONFIG)
219226

manimlib/constants.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ class MyText(Text):
115115
"""
116116

117117
# There might be other configuration than pixel shape later...
118+
FOURK_CAMERA_CONFIG = {
119+
"pixel_height": 2160,
120+
"pixel_width": 3840,
121+
"frame_rate": 60,
122+
}
123+
118124
PRODUCTION_QUALITY_CAMERA_CONFIG = {
119125
"pixel_height": 1440,
120126
"pixel_width": 2560,

0 commit comments

Comments
 (0)