Short introduction to Manim: Difference between revisions
From wikiluntti
Line 18: | Line 18: | ||
<pre> | <pre> | ||
config.background_color = WHITE | config.background_color = WHITE | ||
</pre> | |||
Add a background image | |||
<pre> | |||
shirt = ImageMobject("bg_P5.png") | |||
self.add( (shirt) ) | |||
</pre> | </pre> | ||
Revision as of 16:40, 7 November 2021
Introduction
Some short manim scrips to generate easy visualizations.
manim -pql bez2.py manim -pqh bez2.py BezierSplineExample 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
shirt = ImageMobject("bg_P5.png") self.add( (shirt) )
Bezier curve
Bezier curve with two points: