void fl_arc(double x, double y, double r, double start, double end)
Add a series of points to the current path on the arc of a circle; you can get elliptical paths by using scale and rotate before calling fl_arc(). The center of the circle is given by x and y, and r is its radius. fl_arc() takes start and end angles that are measured in degrees counter-clockwise from 3 o'clock. If end is less than start then it draws the arc in a clockwise direction.On 13 April 2024, at 11:59, "'Matthias Melcher' via fltk.general" <fltkg...@googlegroups.com> wrote:
>The API is from 1998 or earlier. I would implement things differently today, but we need to live with the behavior of `fl_arc` as it is for back compatibility. If you have an idea how to document the peculiarities of `fl_arc` in a better way, we would appreciate text suggestions here or as a PR on GitHub to improve documentation.
>
Thanks Matthias.
My suggestion would be to add a statement or image on how to draw an arc counter-clockwise through 3 o'clock. Something on the lines of: if the second angle is less than the first, then add 360° to the second angle to maintain ccw drawing.
If that is indeed the supported method.
Regards Phil.
>--
>You received this message because you are subscribed to the Google Groups "fltk.general" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral...@googlegroups.com.
>To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/c52e30a1-f25f-4446-aa5d-5ae92a3a493fn%40googlegroups.com.