summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2013-06-22 12:01:11 +0000
committerGreg Ercolano <erco@seriss.com>2013-06-22 12:01:11 +0000
commit0aba84051a8124620a155163484a88ad01545f4a (patch)
treeb895e252711fba4e121130ece8f22f11032f553b
parentcd56917312e5525ddbb59153e017f649e6d52218 (diff)
Include code examples for use of path form of fl_arc()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9937 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/fl_draw.H18
1 files changed, 18 insertions, 0 deletions
diff --git a/FL/fl_draw.H b/FL/fl_draw.H
index be819de33..3d47a438c 100644
--- a/FL/fl_draw.H
+++ b/FL/fl_draw.H
@@ -394,6 +394,24 @@ inline void fl_curve(double X0, double Y0, double X1, double Y1, double X2, doub
\param[in] start,end angles of start and end of arc measured in degrees
counter-clockwise from 3 o'clock. If \p end is less than \p start
then it draws the arc in a clockwise direction.
+
+ Examples:
+ \code
+ // Draw an arc of points
+ fl_begin_points();
+ fl_arc(100.0, 100.0, 50.0, 0.0, 180.0);
+ fl_end_points();
+
+ // Draw arc with a line
+ fl_begin_line();
+ fl_arc(200.0, 100.0, 50.0, 0.0, 180.0);
+ fl_end_line();
+
+ // Draw filled arc
+ fl_begin_polygon();
+ fl_arc(300.0, 100.0, 50.0, 0.0, 180.0);
+ fl_end_polygon();
+ \endcode
*/
inline void fl_arc(double x, double y, double r, double start, double end) {fl_graphics_driver->arc(x,y,r,start,end); }
/**