Chapter 32: Manim

32.1 VSCode extension: Manim Sideview

https://marketplace.visualstudio.com/items?itemName=Rickaym.manim-sideview

ffmpeg.exe placed in the same folder with .py

VSCode Ctrl + Shift + P: open Mobject gallery

32.2 installation

https://docs.manim.community/en/stable/installation.html

32.2.1 Conda

conda install -c conda-forge manim

32.3 quickstart

https://docs.manim.community/en/stable/tutorials/quickstart.html

https://www.w3schools.com/tags/att_video_autoplay.asp

https://www.w3schools.com/tags/att_video_loop.asp

from manim import *

class CreateCircle(Scene):
    def construct(self):
        circle = Circle()  # create a circle
        circle.set_fill(PINK, opacity=0.5)  # set the color and transparency
        self.play(Create(circle))  # show the circle on screen
manim -pql scene.py CreateCircle