This module works using Python's native xml module, with functions and classes to intuitively create SVG graphics
One of the goals of this module is to easily plot mathematical functions
using svg <path>
tags.
Script used to generate the image above
With a focus on geometry and mathematics, svg objects can be animated with this module.
Similar to 3blue1brown's manim, the animation module renders the svg file as an image and pipes it to ffmpeg.
- Increase animation time by dt
- Update svg objects (transformations, movement, etc.)
- If an animation has exceeded its runtime, it will be removed from the object
- Convert svg to png using CairoSVG
- Pipe png image to FFmpeg
- Repeat until the animation ends
- Clone and cd into the repository
- Run
pip install .