arc method
Draws an arc. An arc is described as a section of an ellipse.
x,yrepresents the center of that ellipsewidth,heightare the dimensions of that ellipse.start,stopare the start and stop angles for the arc.closedis a boolean argument. If true, lines are drawn to connect the two end points of the arc to the center.
Implementation
Drawable arc(double x, double y, double width, double height, double start,
double stop,
[bool closed = false]) {
final OpSet outline = OpSetBuilder.arc(
PointD(x, y), width, height, start, stop, closed, true, drawConfig);
final List<PointD> fillPoints = OpSetBuilder.arcPolygon(
PointD(x, y), width, height, start, stop, drawConfig);
return _buildDrawable(outline, fillPoints);
}