Re: [PATCH v3] op/clip: implement arc path

Message ID
DKIM signature
Download raw message
Re: SVG API -- I'm not a fan either, but it has the advantage of familiarity.
Re: Arcs like the existing Loader (older version), see:


Re: Use cases for arc: (both circular and elliptical)

1) making a stroked arc
2) making a "wedge" shape (as seen in pie charts)

the elements are for making the arc:

1) center point
2) width, height
3) start angle
4) end angle
5) stroke width

with these elements you can accomplish both use cases cited above for
both circular (width and height are equal) and elliptical arcs.
If the stroke width is the same as the width you get the wedge shape
for circular arcs.

The coordinate system should match the traditional polar coordinates:
angles go from 0-360 degrees (0-2π radians), increasing

If you want to rotate the arc, apply the standard affine transformations.

Proposed API:
Arc(center f32.Point, width, height float32, startAngle, endAngle
float64, strokeWidth float32)
Export thread (mbox)