From 0aba84051a8124620a155163484a88ad01545f4a Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sat, 22 Jun 2013 12:01:11 +0000 Subject: [PATCH] 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 --- FL/fl_draw.H | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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); } /**