Sideway
output.to from Sideway
Draft for Information Only

Content

Manim Rendering
 Type of Output
  Picture Output
  Video Output
 Quality of Output
 Example
 Source and Reference

Manim Rendering

Manim command can be used to control the rendering of output.

Type of Output

In general, the output of Manim can be video or pictures.

Picture Output

  • Save the last frame of output only: -s, --save_last_frame
  • Save the video as a gif picture: -i, --save_as_gif
  • Save each frame as a png picture: -g, --save_pngs

Video Output

  • Render the scene as a movie file: -w, --write_to_movie
  • Render to a movie file with an alpha channel: -t, --transparent
  • Start rendering not from the first animation: -n START_AT_ANIMATION_NUMBER, --start_at_animation_number START_AT_ANIMATION_NUMBER

Quality of Output

  • Render at a low quality: -l, --low_quality
  • Render at a medium quality: -m, --medium_quality
  • Render at a high quality: --high_quality
  • Rendering resolution: -r RESOLUTION, --resolution RESOLUTION
  • Background color of rendering output: -c COLOR, --color COLOR
  • Render to a movie file with an alpha channel: -t, --transparent

Example

Display text on scene
# folder/file: tut/text001a.py

from manimlib.imports import *

class Text001(Scene):
    def construct(self):
        text=TextMobject("Text  Test")
        self.add(text)
Since the duration of the scene is equal to zero, the scene can only be displayed in form of picture. Therefore the manim command should have the -s to limit manim to save the last frame only in order to prevent error. That is
python -m manim tut/text001a.py -ps -c gray
The result is

imageimage

Source and Reference

https://github.com/3b1b/manim19Dec2019

©sideway

ID: 201100018 Last Updated: 18/11/2020 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 337

Reference 67

Computer

Hardware 151

Software

Application 198

Digitization 25

Latex 9

Manim 122

Numeric 19

Programming

Web 285

Unicode 494

HTML 65

CSS 59

ASP.NET 194

OS 391

DeskTop 7

Python 23

Knowledge

Mathematics

Formulas 8

Algebra 29

Number Theory 206

Trigonometry 18

Geometry 21

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Physics

Electric 27

Biology 1

Geography 1


Copyright © 2000-2020 Sideway . All rights reserved Disclaimers last modified on 06 September 2019