Skip to main content

Animation engine for explanatory math videos

Project description

Install

pip install manim_express

The above steps will automatically install packages manim_express and manimlib(my fork version) for you. Then you can code with them anywhere.

Quick start

  • Render an animation: SquareToCircle

    from manimlib import *
    from manim_express import EagerModeScene
    
    scene = EagerModeScene()
    circle = Circle()
    circle.set_fill(BLUE, opacity=0.5)
    circle.set_stroke(BLUE_E, width=4)
    
    square = Square()
    scene.play(ShowCreation(square))
    scene.play(ReplacementTransform(square, circle))
    
    scene.hold_on()
    
  • manim_express vs Matplotlib:

    from manimlib import *
    from manim_express import EagerModeScene
    import numpy as np
    
    x = np.linspace(0, 2*np.pi, 100)
    y = np.sin(5*x)
    
    # matplotlib
    import matplotlib.pyplot as plt
    
    plt.plot(x, y, color='green', linewidth=2)
    plt.show()
    
    # manim_express
    scene = EagerModeScene()
    
    scene.plot(x, y, color=GREEN, width=2)
    scene.show_plot()
    
    scene.hold_on()
    

Resources

Examples

  • GOA model

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

manim_express-0.2.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

manim_express-0.2-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page