Overview of svgpathtools features
mastersvgpathtools
svgpathtools is a collection of tools for manipulating and analyzing SVG Path objects and Bézier curves.
Key Capabilities
- SVG I/O: Read, write, and display SVG files containing Path and other SVG elements.
- Bézier Analysis:
- Convert Bézier path segments to
numpy.poly1d(polynomial) objects. - Convert polynomials (in standard form) to their Bézier form.
- Compute tangent vectors, normal vectors, and curvature.
- Convert Bézier path segments to
- Path Manipulation:
- Break discontinuous paths into continuous subpaths.
- Reverse segment/path orientation.
- Crop and split paths and segments.
- Smooth paths to make them differentiable.
- Geometric Computation:
- Compute intersections between paths and/or segments.
- Find bounding boxes for paths or segments.
- Compute area enclosed by a closed path.
- Compute arc length and inverse arc length.
- Domain Mapping: Transition maps from path domain to segment domain and back (
T2tandt2T). - Color Conversion: Convert RGB color tuples to hexadecimal color strings and vice versa.
- General Bézier Curves: The
bezier.pysubmodule provides tools for working with nth order Bézier curves stored as n-tuples.