Package import | "zappem.net/pub/graphics/raster" |
---|---|
Documentation | https://pkg.go.dev/zappem.net/pub/graphics/raster |
Sources | https://github.com/tinkerator/raster |
The raster package helps visualize vector graphics in the form of a
PNG image. It can be used with the
"golang.org/x/image/vector"
package. Using primatives in that package, the raster
package
provides support for rendering solid lines and approximate circles. It
also provides a convenience function to render the vector paths to an
image. Documentation for the raster
package should be available on
go.dev.
The package provides a simple examples/trace.go
program
that uses the package to render something resembling a PCB copper
trace.
$ go run examples/trace.go --dest image.png
creates the following image.png
file:
The raster
program is distributed with the same BSD 3-clause license
as that used by golang itself.
The package raster
has been developed purely out of curiosity for
and as part of a project to create simple PCBs using a Snapmaker 2 3D
printer (with laser and CNC tool heads). If you find a bug or want to
suggest a feature addition, please use the bug
tracker.