addPoly

fun addPoly(pts: Array<Point>, close: Boolean): PathBuilder

Adds contour created from line array.

Return

this builder for chaining

Parameters

pts

array of points

close

true to add line connecting contour end and start


fun addPoly(coords: FloatArray, close: Boolean): PathBuilder

Adds contour created from line array.

Return

this builder for chaining

Parameters

coords

flat array of point coordinates (x, y pairs)

close

true to add line connecting contour end and start