Short introduction to Manim: Difference between revisions
From wikiluntti
Line 33: | Line 33: | ||
[[File:Bez2.svg|thumb]] | [[File:Bez2.svg|thumb]] | ||
[[File:BezierSplineExample_ManimCE_v0.12.0.gif|thumb]] | [[File:BezierSplineExample_ManimCE_v0.12.0.gif|thumb]] | ||
https://github.com/markkuleino/manim/blob/main/bezier.py |
Revision as of 17:42, 7 November 2021
Introduction
Some short manim scrips to generate easy visualizations.
manim -pql bez2.py manim -pqh bez2.py BezierSplineExample --format=png f: open the directory/ folder i: generate gif file p: play qm, qh, qk: quality (low, high, 4k) qh: high quality s: save last frame t: transparent background
config.background_color = WHITE
Add a background image
bg_image = ImageMobject("bg_P5.png") self.add( bg_image )
Bezier curve
Bezier curve with two points: