diff options
author | scuri <scuri> | 2010-06-01 22:31:45 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-06-01 22:31:45 +0000 |
commit | 17be65cfea56a53dc3a9cb617895adf5300db099 (patch) | |
tree | 03362237b113b92157f433ce0e018c39821b1f84 /test | |
parent | 3e4bae27558fd3bcec4bc54928b0a5d3145cd7c3 (diff) |
*** empty log message ***
Diffstat (limited to 'test')
-rw-r--r-- | test/simple/simple.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/test/simple/simple.c b/test/simple/simple.c index eb7acab..891caef 100644 --- a/test/simple/simple.c +++ b/test/simple/simple.c @@ -705,18 +705,26 @@ int SimpleDrawAll(void) cdCanvasPathSet(canvas, CD_PATH_MOVETO); cdVertex(w/2 + 200, h/2); cdCanvasPathSet(canvas, CD_PATH_LINETO); + cdVertex(w/2 + 230, h/2 + 50); + cdCanvasPathSet(canvas, CD_PATH_LINETO); cdVertex(w/2 + 250, h/2 + 50); cdCanvasPathSet(canvas, CD_PATH_CURVETO); - cdVertex(w/2+150+150, h/2+200-50); - cdVertex(w/2+150+180, h/2+250-50); - cdVertex(w/2+150+180, h/2+200-50); + cdVertex(w/2+150+150, h/2+200-50); /* control point for start */ + cdVertex(w/2+150+180, h/2+250-50); /* control point for end */ + cdVertex(w/2+150+180, h/2+200-50); /* end point */ cdCanvasPathSet(canvas, CD_PATH_CURVETO); cdVertex(w/2+150+180, h/2+150-50); cdVertex(w/2+150+150, h/2+100-50); cdVertex(w/2+150+300, h/2+100-50); - cdCanvasPathSet(canvas, CD_PATH_CLOSE); -// cdCanvasPathSet(canvas, CD_PATH_STROKE); - cdCanvasPathSet(canvas, CD_PATH_FILL); + cdCanvasPathSet(canvas, CD_PATH_LINETO); + cdVertex(w/2+150+300, h/2-50); + cdCanvasPathSet(canvas, CD_PATH_ARC); + cdVertex(w/2+300, h/2); /* center */ + cdVertex(200, 100); /* width, height */ + cdVertex(-30*1000, -170*1000); /* start angle, end angle (degrees / 1000) */ +// cdCanvasPathSet(canvas, CD_PATH_CLOSE); + cdCanvasPathSet(canvas, CD_PATH_STROKE); +// cdCanvasPathSet(canvas, CD_PATH_FILL); // cdCanvasPathSet(canvas, CD_PATH_FILLSTROKE); cdEnd(); |