2.3 KiB
2.3 KiB
draw2d
This package (written in go) provides an API to draw 2d geometrical forms on images. This library is largely inspired by postscript, cairo and HTML5 canvas.
The package depends on freetype-go package for its rasterization algorithm.
Some algorithms have been translated from the antigrain.com project (adaptive bezier, and arc drawing.)
Installation
Once you have Go installed, to install draw2d
:
$ go get github.com/llgcode/draw2d
a good starting point is the getting started wiki page.
Samples
Sample images generated by draw2d
(inspired by cairo samples:
If you find bugs, please refer to the issue tracker.