draw2d/README.md
Laurent Le Goff fff6b05c93 Fix img url
2015-04-19 17:30:15 +02:00

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.

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