2015-04-18 21:54:16 +00:00
|
|
|
draw2d
|
|
|
|
======
|
|
|
|
|
2015-04-22 13:59:42 +00:00
|
|
|
This package (written in [go](http://golang.org)) provides an API to draw 2d vector forms on [images](http://golang.org/pkg/image).
|
|
|
|
This library is inspired by [postscript](http://www.tailrecursive.org/postscript) and [HTML5 canvas](http://www.w3.org/TR/2dcontext/).
|
2015-04-18 21:54:16 +00:00
|
|
|
|
|
|
|
The package depends on [freetype-go](http://code.google.com/p/freetype-go) package for its rasterization algorithm.
|
|
|
|
|
|
|
|
|
2015-04-22 13:59:42 +00:00
|
|
|
Using
|
|
|
|
-----
|
|
|
|
|
2015-04-22 14:05:00 +00:00
|
|
|
Install [golang](http://golang.org/doc/install) and get `draw2d`
|
2015-04-18 21:54:16 +00:00
|
|
|
|
2015-04-22 14:03:13 +00:00
|
|
|
```
|
2015-04-22 13:59:42 +00:00
|
|
|
go get github.com/llgcode/draw2d
|
2015-04-18 21:54:16 +00:00
|
|
|
```
|
|
|
|
|
2015-04-22 14:05:00 +00:00
|
|
|
and start coding using one of the [Samples](https://github.com/llgcode/draw2d.samples).
|
2015-04-22 13:59:42 +00:00
|
|
|
|
2015-04-18 21:54:16 +00:00
|
|
|
|
2015-04-22 14:05:00 +00:00
|
|
|
Softwares and Packages using draw2d
|
|
|
|
-----------------------------------
|
2015-04-18 21:54:16 +00:00
|
|
|
|
2015-04-22 13:59:42 +00:00
|
|
|
- [golang postscript interpreter](https://github.com/llgcode/ps)
|
2015-04-22 14:03:13 +00:00
|
|
|
- [gonum plot](https://github.com/gonum/plot)
|
2015-04-18 21:54:16 +00:00
|
|
|
|
2015-04-22 14:03:13 +00:00
|
|
|
References
|
2015-04-22 13:59:42 +00:00
|
|
|
---------
|
2015-04-18 21:54:16 +00:00
|
|
|
|
2015-04-22 13:59:42 +00:00
|
|
|
- [antigrain.com](http://www.antigrain.com)
|
|
|
|
- [freetype-go](http://code.google.com/p/freetype-go)
|