addArc

fun addArc(oval: Rect, startAngle: Float, sweepAngle: Float): Path

Appends arc to Path, as the start of new contour. Arc added is part of ellipse bounded by oval, from startAngle through sweepAngle. Both startAngle and sweepAngle are measured in degrees, where zero degrees is aligned with the positive x-axis, and positive sweeps extends arc clockwise.

If sweepAngle -360, or sweepAngle 360; and startAngle modulo 90 is nearly zero, append oval instead of arc. Otherwise, sweepAngle values are treated modulo 360, and arc may or may not draw depending on numeric rounding.

Return

reference to Path

Parameters

oval

bounds of ellipse containing arc

startAngle

starting angle of arc in degrees

sweepAngle

sweep, in degrees. Positive is clockwise; treated modulo 360

See also