Package import | "zappem.net/pub/graphics/svger" |
---|---|
Documentation | https://pkg.go.dev/zappem.net/pub/graphics/svger |
Sources | https://github.com/tinkerator/svger |
Go package for parsing re-rendering svg files. It includes support for Bezier Curve rasterization. See history for where the initial version of the code originated.
The svger
package parses SVG files and generates a series of drawing
instructions in order to re-render/manipulate them.
We provide a simple example, the svgoutline
program:
$ go run examples/svgoutline.go --src examples/test-board-F_Cu.svg
Automated documentation for the svger package can be found on go.dev.
The package’s main purpose is to support transforming multi-group SVG kicad generated SVG metal layers into a flattened outline represenation, suitable for laser cutting on a Snapmaker 2. We’ll likely host the set of tools for that in a separate repository to keep the package dependencies of this current package more straightforward.
This package was evolved from a forked version of:
github.com/rustyoz/svg
, trimmed of
superflous dependencies and merged with the two independent packages:
github.com/rustyoz/Mtransform
and
github.com/rustyoz/genericlexer
.