Giter Site home page Giter Site logo

pdeanimation's Introduction

PDE Animation

PDEAnimation.mp4

Getting Started

git clone https://github.com/graysoncroom/PDEAnimation.git
cd PDEAnimation
python -m venv env
source ./env/bin/activate
pip install manim scipy

Now you'll be in a python virtual environment with the manim and scipy libraries installed.

Note that you'll need to source ./env/bin/activate every time you close your terminal and want to start working on the code again.

Rendering the animation(s)

Example:

manim -pqh src/matchsticks.py PDEAnimation

The -p option tells manim to open the animation in a video player after the rendering completes (stands for play).

The -qh option tells manim to render with high quality.

You could also give it -ql instead as your iterating on an animation and want the rendering to go faster.

src/matchsticks.py is the source file of your animation code

PDEAnimation is the class name of the manim class that describes the animation

Note: Whether you pass manim the -p option or not, the rendered video will be stored in the ./media directory. If a ./media directory doesn't exist, it will be created for you.

Problems and Solutions

If manim is complaining about libraries, check out the Manim Documentation

It's likely you'll need to install a few system-level libs (e.g. ffmpeg, libpango1, libcairo2, ...)

Note: Manim renders math text using Tex. Make sure you have a full Tex distribution (e.g. livetex w/ extras) before trying to render these animations.

pdeanimation's People

Contributors

graysoncroom avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

azadroymy

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.