In the single_curve.py and painterly_rendering.py examples I see that paths can be created from numpy arrays, with the points in the array representing end points and control points of a chain of quadratic bezier curves.
In the single_path.py example a cubic bezier is specified from an svg string.
However I don't see anywhere in the examples where a polyline is passed to the pydiffvg.Path() constructor.
I'd like to avoid converting my numpy array of points to an svg string and then using pydiffvg.from_svg_path().
Is this possible?
Thanks
In the
single_curve.py
andpainterly_rendering.py
examples I see that paths can be created from numpy arrays, with the points in the array representing end points and control points of a chain of quadratic bezier curves. In thesingle_path.py
example a cubic bezier is specified from an svg string. However I don't see anywhere in the examples where a polyline is passed to thepydiffvg.Path()
constructor. I'd like to avoid converting my numpy array of points to an svg string and then usingpydiffvg.from_svg_path()
. Is this possible? Thanks