Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/redayzarra/study-manim

These are all my notes, lessons, and tutorials I have followed to learn 3b1b's Manim library. Manim is a python animation library that allows users to create graphs, visuals, animations, and even write LaTeX math formulas. I hope to finish the tutorials and create my own YouTube videos for viewers to learn concepts visually.
https://github.com/redayzarra/study-manim

animation manim manim-3b1b manim-animations manim-engine manim-python manimce python python-library python3

Last synced: about 1 month ago
JSON representation

These are all my notes, lessons, and tutorials I have followed to learn 3b1b's Manim library. Manim is a python animation library that allows users to create graphs, visuals, animations, and even write LaTeX math formulas. I hope to finish the tutorials and create my own YouTube videos for viewers to learn concepts visually.

Awesome Lists containing this project

README

        

# Manim Usage Guide

This guide will help you get started with creating animations using Manim. Below are the essential commands you need to know.

## Creating a Manim Scene

My custom user snippet for starting a new `scene.py` is:

```python
gomanim or manim
```

Which effectively types:
```python
from manim import *
from components.watermark import create_watermark

class Classname(Scene):
def construct(self):
self.construction()
self.animate_scene()

def construction(self):
"""
Define and position the elements of the scene.
"""

def animate_scene(self):
"""
Add elements to the scene and animate them.
"""
# Add watermark
watermark = create_watermark()
self.add(watermark)

```

## Running Manim
In the terminal, I need to go to the directory of `scene.py` and type:

```bash
manim scene.py [Class name]
```
or alternatively

```bash
python -m manim scene.py [Class name]
```

## Video Settings
For **Low Quality** preview videos:
```bash
manim -pql scene.py [Class name]
```

For **High Quality** final videos:
```bash
manim -pqk scene.py [Class name]
```

To change the aspect ratio and resolution of videos add this:

```python
from manim import *

# For vertical content
config.pixel_width = 1080
config.pixel_height = 1920
config.frame_width = 9
config.frame_height = 16

class ClassName(Scene):
def construct(self):

```

## Creating a GIF's
I can also create GIF's of different qualities with the flag:
```bash
manim --format=gif scene.py [Class name]
```
## Getting last frame
You can get the last frame of scene with:
```bash
manim -sqk scene.py [Class name]
```