Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

zappem.net/pub/graphics/raster

Package Overview
Dependencies
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zappem.net/pub/graphics/raster

Go Modules
Version
v0.7.0
Version published
Created
Source

raster - a convenience package to render vector graphics as images

Overview

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:

trace rendered

License info

The raster program is distributed with the same BSD 3-clause license as that used by golang itself.

Reporting bugs and feature requests

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.

FAQs

Package last updated on 16 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts