Draw2d changed to use our own freetype fork
Go to file
Sebastien Binet f1d2545bc5 gitignore: translate from hgignore 2015-04-19 00:32:22 +02:00
cmd Fix SwapBuffers 2015-04-17 16:54:29 +02:00
draw2d Clean 2015-04-17 17:03:50 +02:00
draw2dgl Clean 2015-04-17 17:03:50 +02:00
issue23 all: gofmt+goimports 2015-04-16 11:51:13 +02:00
resource move postscript code to separate repository llgcode/ps 2015-04-17 12:11:33 +02:00
wingui move postscript code to separate repository llgcode/ps 2015-04-17 12:11:33 +02:00
.gitignore gitignore: translate from hgignore 2015-04-19 00:32:22 +02:00
.project Remove oldies 2011-04-27 10:06:14 +02:00
AUTHORS Remove oldies 2011-04-27 10:06:14 +02:00
LICENSE Remove oldies 2011-04-27 10:06:14 +02:00
Makefile merge sbinet change 2015-04-17 14:57:59 +02:00
README.md doc: markdown-ify 2015-04-19 00:15:40 +02:00

README.md

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/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.

Path DrawArc DrawArcNegative CurveRectangle DrawCubicCurve Dash FillStroke FillStyle MultiSegmentCaps RoundRectangle LineCap LineJoin