Draw2d changed to use our own freetype fork
Find a file
Laurent Le Goff aa92b7cf68 modify test
2011-05-17 23:32:54 +02:00
cmd 10ms on win32 tiger 2011-04-26 11:56:04 +02:00
doc 10ms on win32 tiger 2011-04-26 11:56:04 +02:00
draw2d modify test 2011-05-17 23:32:54 +02:00
draw2dgl minor fix 2011-04-26 13:26:55 +02:00
postscript 10ms on win32 tiger 2011-04-26 11:56:04 +02:00
resource 10ms on win32 tiger 2011-04-26 11:56:04 +02:00
wingui 10ms on win32 tiger 2011-04-26 11:56:04 +02:00
.hgignore add hgignore 2011-05-17 20:48:52 +02:00
.project 10ms on win32 tiger 2011-04-26 11:56:04 +02:00
AUTHORS 10ms on win32 tiger 2011-04-26 11:56:04 +02:00
LICENSE 10ms on win32 tiger 2011-04-26 11:56:04 +02:00
Makefile 10ms on win32 tiger 2011-04-26 11:56:04 +02:00
README 10ms on win32 tiger 2011-04-26 11:56:04 +02:00


This package (written in *[http://golang.org go]*) provide an API to draw 2d geometrical form on [http://golang.org/pkg/image/ images]. 
This library is largely inspired by [http://www.tailrecursive.org/postscript/ postscript], [http://cairographics.org/ cairo], [http://dev.w3.org/html5/canvas-api/canvas-2d-api.html#the-2d-drawing-context HTML5 canvas]. 

The package depends on [http://code.google.com/p/freetype-go/ freetype-go] package thanks to its rasterization algorithm. 

Some algorithm have been translated from http://www.antigrain.com project ([http://www.antigrain.com/research/adaptive_bezier/index.html adaptive bezier], and arc drawing)

=== Installation ====
Once you have Go installed, to install draw2d:

 * First see the installation procedure of [http://code.google.com/p/freetype-go/ freetype-go]
 * goinstall draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d

a good starting point is the [http://code.google.com/p/draw2d/wiki/GettingStarted getting started]


=== [http://code.google.com/p/draw2d/wiki/Samples Samples] ===
Sample images generated by draw2d (inspired by [http://cairographics.org/samples/ cairo samples]): 
there's already some bugs please refer to [http://code.google.com/p/draw2d/issues/list issue tracking] 

[http://draw2d.googlecode.com/svn/wiki/test_results/TestPath.png]
[http://draw2d.googlecode.com/svn/wiki/test_results/TestDrawArc.png]
[http://draw2d.googlecode.com/svn/wiki/test_results/TestDrawArcNegative.png]
[http://draw2d.googlecode.com/svn/wiki/test_results/TestCurveRectangle.png]
[http://draw2d.googlecode.com/svn/wiki/test_results/TestDrawCubicCurve.png]
[http://draw2d.googlecode.com/svn/wiki/test_results/TestDash.png]
[http://draw2d.googlecode.com/svn/wiki/test_results/TestFillStroke.png]
[http://draw2d.googlecode.com/svn/wiki/test_results/TestFillStyle.png]
[http://draw2d.googlecode.com/svn/wiki/test_results/TestMultiSegmentCaps.png]
[http://draw2d.googlecode.com/svn/wiki/test_results/TestRoundRectangle.png]
[http://draw2d.googlecode.com/svn/wiki/test_results/TestLineCap.png]
[http://draw2d.googlecode.com/svn/wiki/test_results/TestLineJoin.png]