arcOval method
Draws an arc of an oval.
The oval is specified by its center (cx, cy)
, x radius radiusX
, and y
radius radiusY
. The arc starts at startAngle
and sweeps sweepAngle
degrees (in radians).
See also:
- Path.addArc, the method used to draw the arc.
Implementation
Graphics arcOval(
double cx,
double cy,
double radiusX,
double radiusY,
double startAngle,
double sweepAngle,
) {
_path!.addArc(
Rect.fromCenter(
center: Offset(cx, cy),
width: radiusX * 2,
height: radiusY * 2,
),
startAngle,
sweepAngle,
);
return this;
}