/linkage

linkage system printed by manim.

Primary LanguagePython

Linkage

Thanks to manim, the great math print lib.

Thanks to 为什么连杆可以画出曲线, the great Popular Science video for linkage.

Run

  1. Install manim.

  2. Run the linkages by manimgl <source> <scene> like:

    manimgl main.py Linkage0
  3. Generate mp4

    manimgl -w main.py PeaucellierLinkage
  4. Generate gif

    ffmpeg -i videos/PeaucellierLinkage.mp4 out.gif

TODO

See TODO in codes.

  1. 优化代码结构
  • 初始状态与运行时统一

Agreement

dot

  • color red: the driver, move around a circle.
  • color yellow: point that will be driven.
  • color blue: fixed point.
  • color green: driven point used to draw the locus.