From 2fed1b9393307632f8bf537f5df09a5173d9049b Mon Sep 17 00:00:00 2001 From: "legoff.laurent" Date: Thu, 25 Nov 2010 11:28:59 +0000 Subject: [PATCH] test bubble --- draw2d/src/cmd/testdraw2d.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/draw2d/src/cmd/testdraw2d.go b/draw2d/src/cmd/testdraw2d.go index 0b2121e..4497e18 100644 --- a/draw2d/src/cmd/testdraw2d.go +++ b/draw2d/src/cmd/testdraw2d.go @@ -399,6 +399,20 @@ func TestLineJoin() { saveToPngFile("TestLineJoin", i) } +func TestBubble() { + i, gc := initGc(w, h) + gc.BeginPath(); + gc.MoveTo(75,25); + gc.QuadCurveTo(25,25,25,62.5); + gc.QuadCurveTo(25,100,50,100); + gc.QuadCurveTo(50,120,30,125); + gc.QuadCurveTo(60,120,65,100); + gc.QuadCurveTo(125,100,125,62.5); + gc.QuadCurveTo(125,25,75,25); + gc.Stroke(); + saveToPngFile("TestBubble", i) +} + func main() { TestPath() @@ -413,4 +427,5 @@ func main() { TestRoundRectangle() TestLineCap() TestLineJoin() + TestBubble() }