addRect

fun addRect(rect: Rect, dir: PathDirection = PathDirection.CLOCKWISE, start: Int = 0): Path

Adds Rect to Path, appending PathVerb.MOVE, three PathVerb.LINE, and PathVerb.CLOSE, starting with top-left corner of Rect; followed by top-right, bottom-right, and bottom-left if dir is PathDirection.CLOCKWISE; or followed by bottom-left, bottom-right, and top-right if dir is PathDirection.COUNTER_CLOCKWISE.

Return

reference to Path

Parameters

rect

Rect to add as a closed contour

dir

Direction to wind added contour

See also