addOval

fun addOval(oval: Rect, dir: PathDirection = PathDirection.CLOCKWISE, start: Int = 1): Path

Adds oval to path, appending PathVerb.MOVE, four PathVerb.CONIC, and PathVerb.CLOSE.

Oval is upright ellipse bounded by Rect oval with radii equal to half oval width and half oval height. Oval begins at (oval.fRight, oval.centerY()) and continues clockwise if dir is PathDirection.CLOCKWISE, counterclockwise if dir is PathDirection.COUNTER_CLOCKWISE.

Return

reference to Path

Parameters

oval

bounds of ellipse added

dir

Direction to wind ellipse

See also