mathandy / svgpathtools

A collection of tools for manipulating and analyzing SVG Path objects and Bezier curves.
MIT License
557 stars 142 forks source link

Implement affine transform for paths and bezier segments #79

Closed gpelouze closed 6 years ago

gpelouze commented 6 years ago

This PR proposes an implementation of affine transformation for Path and bezier segment objects. This is done by adding the function transform() to svgpathtools/path.py, which allows to transform the input objects with an arbitrary affine transformation matrix.

I may submit a later PR that adds support for Arc objects, but it still requires some work.

gpelouze commented 6 years ago

Sorry, this was some old code I had on my computer. I didn’t realize the functionality had been implemented in the mean time.