FLTK logo

[master] 2818a36 - Add example to fl_arc docs.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 2818a36 - Add example to fl_arc docs. "Matthias Melcher" 05:17 Apr 14  
 
commit 2818a36064365e63e32de6850c65544dd1fdfb07
Author:     Matthias Melcher <github@matthiasm.com>
AuthorDate: Sun Apr 14 14:09:02 2024 +0200
Commit:     Matthias Melcher <github@matthiasm.com>
CommitDate: Sun Apr 14 14:09:02 2024 +0200

    Add example to fl_arc docs.

 FL/fl_draw.H | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git FL/fl_draw.H FL/fl_draw.H
index 2ad8d81..7cf3f68 100644
--- FL/fl_draw.H
+++ FL/fl_draw.H
@@ -623,11 +623,17 @@ inline void fl_curve(double X0, double Y0, double X1, double Y1, double X2, doub
 }
 /**
   Add a series of points to the current path on the arc of a circle.
+ 
+  The arc is drawn counter-clockwise from 3 o'clock. If \p end is less than
+  \p start then it draws the arc in a clockwise direction. To draw an arc across
+  the 3 o'clock line, \p start and \p end can be greater than 360 or less than 0.
+  For example, to draw a counter-clockwise arc from 6 to 12 o'clock, \p start
+  would be -90 deg, and \p end would be at +90 deg.
+
   You can get elliptical paths by using scale and rotate before calling fl_arc().
-  \param[in] x,y,r center and radius of circular arc
-  \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.
+
+  \param[in] x, y, r center and radius of circular arc
+  \param[in] start, end angles of start and end of arc measured in degrees
 
   \image html  fl_arc_xyr_diagram.png "fl_arc(x,y,r,a1,a2)"
   \image latex fl_arc_xyr_diagram.png "fl_arc(x,y,r,a1,a2)" width=6cm
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.