addArc

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

Appends arc to path, as the start of new contour.

Return

this builder for chaining

Parameters

oval

bounds of ellipse containing arc

startAngle

starting angle of arc in degrees

sweepAngle

sweep, in degrees. Positive is clockwise


fun addArc(left: Float, top: Float, right: Float, bottom: Float, startAngle: Float, sweepAngle: Float): PathBuilder

Appends arc to path, as the start of new contour.

Return

this builder for chaining

Parameters

left

left edge of oval bounding ellipse

top

top edge of oval bounding ellipse

right

right edge of oval bounding ellipse

bottom

bottom edge of oval bounding ellipse

startAngle

starting angle of arc in degrees

sweepAngle

sweep, in degrees. Positive is clockwise