Create SVG files from VMobject and VGroup
Project description
manim-mobject-svg
Create SVG files from VMobject.
Install: pip install manim-mobject-svg
Here's an example of how to use this plugin:
from manim import *
from manim_mobject_svg import *
a = Square(color=BLUE)
a.to_svg("square.svg")
This should create a file square.svg
in the current directory and return the path to the file. The output should look like this:
It's also possible to create a SVG file for VGroup.
from manim import *
from manim_mobject_svg import *
a = Square(color=BLUE)
b = Circle(color=RED)
c = VGroup(a, b)
c.to_svg("group.svg")
It'll create a SVG file like this:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for manim_mobject_svg-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00410f286bfa83a4c512908d0ce5ec18a896fbb6c27bdc34ff02bbf2315c82ef |
|
MD5 | 97738aa91d4d819a9400e941a5ec4216 |
|
BLAKE2b-256 | 93225db0f9c4bd6fc9e88cb5a9952dd991e04b496bbbf1351df69bf6fd58db2e |