summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2018-05-24 19:48:41 +0000
committerGreg Ercolano <erco@seriss.com>2018-05-24 19:48:41 +0000
commitb721f519ac3fd765f6b24acab75477396be380fe (patch)
treebc6bad25c824aea4d1f52270112afa9cef8bf1a0
parent2694217d768033bae1c73aa6c8112a13693a3efb (diff)
Added separate diagram for fl_arc(x,y,r,a1,a2) (very different from fl_arc(x,y,w,h,a1,a2))
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12935 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/fl_draw.H5
-rw-r--r--documentation/src/drawing.dox6
-rw-r--r--documentation/src/fl_arc_xyr_diagram.pngbin0 -> 5330 bytes
3 files changed, 9 insertions, 2 deletions
diff --git a/FL/fl_draw.H b/FL/fl_draw.H
index b7a1c4d49..11a7f3bc6 100644
--- a/FL/fl_draw.H
+++ b/FL/fl_draw.H
@@ -408,6 +408,9 @@ inline void fl_curve(double X0, double Y0, double X1, double Y1, double X2, doub
counter-clockwise from 3 o'clock. If \p end is less than \p start
then it draws the arc in a clockwise direction.
+ \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
+
Examples:
\code
// Draw an arc of points
@@ -428,7 +431,7 @@ inline void fl_curve(double X0, double Y0, double X1, double Y1, double X2, doub
*/
inline void fl_arc(double x, double y, double r, double start, double end) {fl_graphics_driver->arc(x,y,r,start,end); }
/**
- fl_circle() is equivalent to fl_arc(x,y,r,0,360), but may be faster.
+ fl_circle(x,y,r) is equivalent to fl_arc(x,y,r,0,360), but may be faster.
It must be the \e only thing in the path: if you want a circle as part of
a complex polygon you must use fl_arc()
diff --git a/documentation/src/drawing.dox b/documentation/src/drawing.dox
index a803507cd..dad58652f 100644
--- a/documentation/src/drawing.dox
+++ b/documentation/src/drawing.dox
@@ -654,10 +654,14 @@ 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.
+\par
+\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
+
void fl_circle(double x, double y, double r)
\par
-\p fl_circle(...) is equivalent to \p fl_arc(...,0,360) but may
+\p fl_circle(x,y,r) is equivalent to \p fl_arc(x,y,r,0,360) but may
be faster. It must be the \e only thing in the path: if you want
a circle as part of a complex polygon you must use \p %fl_arc().
diff --git a/documentation/src/fl_arc_xyr_diagram.png b/documentation/src/fl_arc_xyr_diagram.png
new file mode 100644
index 000000000..e47aab2bc
--- /dev/null
+++ b/documentation/src/fl_arc_xyr_diagram.png
Binary files differ