Registry / utility / tdewolff-canvas

tdewolff-canvas

JSON →
library0.0.0-20240124130827-eb8f8f8df41fgogounverified

Canvas is a Go library for 2D vector graphics, text rendering, and image manipulation with support for various output formats.

go get github.com/tdewolff/canvas
INSTALL
IMPORT
SIG · TDEWOLFF-CANVAS
T
tdewolff-canvas
utilitygov0.0.0-20240124130827-eb8f8f8df41f
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

canvas
github.com/tdewolff/canvas

Creates a canvas, draws a rectangle, and saves as PNG.

package main import ( "github.com/tdewolff/canvas" "github.com/tdewolff/canvas/renderers" ) func main() { c := canvas.New(100, 100) ctx := canvas.NewContext(c) ctx.DrawPath(0, 0, canvas.Rectangle(50, 50)) renderers.Write("output.png", c) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20240124130827-eb8f8f8df41flatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
tdewolff-canvas — go get tdewolff-canvas · libregistry