custom_config¶
directories¶
mirror_module_path(
TrueorFalse) Whether to create a folder named the name of the running file under theoutputpath, and save the output (images/orvideos/) in it.
baseThe root directory that will hold files, such as video files manim renders, or image resources that it pulls from
outputOutput file path, the videos will be saved in the
videos/folder under it, and the pictures will be saved in theimages/folder under it.For example, if you set
outputto"/.../manim/output"andmirror_module_pathtoFalse, then you exportedScene1in the code file and saved the last frame, then the final directory structure will be like:manim/ ├── manimlib/ │ ├── animation/ │ ├── ... │ ├── default_config.yml │ └── window.py ├── output/ │ ├── images │ │ └── Scene1.png │ └── videos │ └── Scene1.mp4 ├── code.py └── custom_config.ymlBut if you set
mirror_module_pathtoTrue, the directory structure will be:manim/ ├── manimlib/ │ ├── animation/ │ ├── ... │ ├── default_config.yml │ └── window.py ├── output/ │ └── code/ │ ├── images │ │ └── Scene1.png │ └── videos │ └── Scene1.mp4 ├── code.py └── custom_config.yml
raster_imagesThe directory for storing raster images to be used in the code (including
.jpg,.jpeg,.pngand.gif), which will be read byImageMobject.
vector_imagesThe directory for storing vector images to be used in the code (including
.svgand.xdv), which will be read bySVGMobject.
soundsThe directory for storing sound files to be used in
Scene.add_sound()( including.wavand.mp3).
cacheThe directory for storing temporarily generated cache files, including
Texcache,Textcache and storage of object points.
window¶
position_stringThe relative position of the playback window on the display (two characters, the first character means upper(U) / middle(O) / lower(D), the second character means left(L) / middle(O) / right(R)).
monitor_indexIf using multiple monitors, which one should the window show up in?
full_screenShould the preview window be full screen. If not, it defaults to half the screen
positionThis is an option to more manually set the default window position, in pixel coordinates, e.g. (500, 300)
sizeOption to more manually set the default window size, in pixel coordinates, e.g. (1920, 1080)
camera¶
resolutionResolution to render at, e.g. (1920, 1080)
background_colorDefault background color of scenes
fpsFramerate
background_opacityOpacity of the background
file_writer¶
Configuration specifying how files are written, e.g. what ffmpeg parameters to use
scene¶
Some default configuration for the Scene class
text¶
fontDefault font of Text
text_alignmentDefault text alignment for LaTeX
tex¶
templateWhich configuration from the manimlib/tex_template.yml file should be used to determine the latex compiler to use, and what preamble to include for rendering tex.
sizes¶
Valuess for various constants used in manimm to specify distances, like the height of the frame, the value of SMALL_BUFF, LARGE_BUFF, etc.
colors¶
Color pallete to use, determining values of color constants like RED, BLUE_E, TEAL, etc.
loglevel¶
Can be DEBUG / INFO / WARNING / ERROR / CRITICAL
universal_import_line¶
Import line that need to execute when entering interactive mode directly.
ignore_manimlib_modules_on_reload¶
When calling reload during the interactive mode, imported modules are
by default reloaded, in case the user writing a scene which pulls from various
other files they have written. By default, modules withinn the manim library will
be ignored, but one developing manim may want to set this to be False so that
edits to the library are reloaded as well.