Giter Club home page Giter Club logo

redayzarra / study-manim Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 67.36 MB

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.

Python 84.16% TeX 15.84%
animation manim manim-3b1b manim-animations manim-engine manim-python manimce python python-library python3

study-manim's Introduction

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:

gomanim or manim

Which effectively types:

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:

manim scene.py [Class name]

or alternatively

python -m manim scene.py [Class name]

Video Settings

For Low Quality preview videos:

manim -pql scene.py [Class name]

For High Quality final videos:

manim -pqk scene.py [Class name]

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

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:

manim --format=gif scene.py [Class name]

Getting last frame

You can get the last frame of scene with:

manim -sqk scene.py [Class name]

study-manim's People

Contributors

redayzarra avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.