test bubble

This commit is contained in:
legoff.laurent 2010-11-25 11:28:59 +00:00
parent 9e52537467
commit 2fed1b9393

View file

@ -399,6 +399,20 @@ func TestLineJoin() {
saveToPngFile("TestLineJoin", i) 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() { func main() {
TestPath() TestPath()
@ -413,4 +427,5 @@ func main() {
TestRoundRectangle() TestRoundRectangle()
TestLineCap() TestLineCap()
TestLineJoin() TestLineJoin()
TestBubble()
} }