VMobjectFromSVGPath¶
Qualified name: manim.mobject.svg.svg\_mobject.VMobjectFromSVGPath
- class VMobjectFromSVGPath(path_obj, long_lines=False, should_subdivide_sharp_curves=False, should_remove_null_curves=False, **kwargs)[source]¶
Bases:
VMobjectA vectorized mobject representing an SVG path.
Note
The
long_lines,should_subdivide_sharp_curves, andshould_remove_null_curveskeyword arguments are only respected with the OpenGL renderer.- Parameters:
path_obj (se.Path) – A parsed SVG path object.
long_lines (bool) – Whether or not straight lines in the vectorized mobject are drawn in one or two segments.
should_subdivide_sharp_curves (bool) – Whether or not to subdivide subcurves further in case two segments meet at an angle that is sharper than a given threshold.
should_remove_null_curves (bool) – Whether or not to remove subcurves of length 0.
kwargs (Any) – Further keyword arguments are passed to the parent class.
Methods
Initializes
pointsand therefore the shape.handle_commandsinit_pointsAttributes
alwaysCall a method on a mobject every frame.
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.
- _original__init__(path_obj, long_lines=False, should_subdivide_sharp_curves=False, should_remove_null_curves=False, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
path_obj (Path)
long_lines (bool)
should_subdivide_sharp_curves (bool)
should_remove_null_curves (bool)
kwargs (Any)