Draw2d changed to use our own freetype fork
curve | ||
draw2dgl | ||
raster | ||
resource | ||
wingui | ||
.gitignore | ||
.project | ||
advanced_path.go | ||
arc.go | ||
AUTHORS | ||
curves.go | ||
dasher.go | ||
demux_converter.go | ||
draw2d.go | ||
fileutil.go | ||
font.go | ||
gc.go | ||
image.go | ||
LICENSE | ||
math.go | ||
paint.go | ||
path.go | ||
path_adder.go | ||
path_converter.go | ||
path_storage.go | ||
README.md | ||
rgba_interpolation.go | ||
stack_gc.go | ||
stroker.go | ||
transform.go | ||
vertex2d.go |
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.