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 – Further keyword arguments are passed to the parent class.
Methods
Initializes
pointsand therefore the shape.handle_commandsinit_pointsAttributes
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.
- generate_points()#
Initializes
pointsand therefore the shape.Gets called upon creation. This is an empty method that can be implemented by subclasses.
- Return type
None