Chapter 29: Manim

29.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

29.2 installation

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

29.2.1 Conda

conda install -c conda-forge manim

29.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