Draw2d changed to use our own freetype fork
Find a file
2015-04-22 15:59:32 +02:00
curve remove deprecated files 2015-04-22 15:59:32 +02:00
draw2dgl Merge simpler import path 2015-04-19 17:14:42 +02:00
raster Merge simpler import path 2015-04-19 17:14:42 +02:00
resource remove unecessary folder 2015-04-22 11:08:18 +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
advanced_path.go Merge simpler import path 2015-04-19 17:14:42 +02:00
arc.go Merge simpler import path 2015-04-19 17:14:42 +02:00
AUTHORS Remove oldies 2011-04-27 10:06:14 +02:00
curves.go Merge simpler import path 2015-04-19 17:14:42 +02:00
dasher.go Merge simpler import path 2015-04-19 17:14:42 +02:00
demux_converter.go Merge simpler import path 2015-04-19 17:14:42 +02:00
draw2d.go Change root documentation and rename doc.go in draw2d.go 2015-04-22 10:49:37 +02:00
fileutil.go Add Save and Load util function 2015-04-22 15:59:01 +02:00
font.go Merge simpler import path 2015-04-19 17:14:42 +02:00
gc.go Merge simpler import path 2015-04-19 17:14:42 +02:00
image.go Merge simpler import path 2015-04-19 17:14:42 +02:00
LICENSE Remove oldies 2011-04-27 10:06:14 +02:00
math.go Merge simpler import path 2015-04-19 17:14:42 +02:00
paint.go Merge simpler import path 2015-04-19 17:14:42 +02:00
path.go Merge simpler import path 2015-04-19 17:14:42 +02:00
path_adder.go Merge simpler import path 2015-04-19 17:14:42 +02:00
path_converter.go Merge simpler import path 2015-04-19 17:14:42 +02:00
path_storage.go Merge simpler import path 2015-04-19 17:14:42 +02:00
README.md Fix img url 2015-04-19 17:30:15 +02:00
rgba_interpolation.go Merge simpler import path 2015-04-19 17:14:42 +02:00
stack_gc.go Merge simpler import path 2015-04-19 17:14:42 +02:00
stroker.go Merge simpler import path 2015-04-19 17:14:42 +02:00
transform.go Merge simpler import path 2015-04-19 17:14:42 +02:00
vertex2d.go Merge simpler import path 2015-04-19 17:14:42 +02:00

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