Polygon

fun Polygon(pts: Array<Point>, isClosed: Boolean, fillType: PathFillMode = PathFillMode.WINDING, isVolatile: Boolean = false): Path

Creates a polygon path from an array of points.

Return

new polygon Path

Parameters

pts

array of polygon vertices

isClosed

whether to close the polygon

fillType

fill type for the path

isVolatile

whether the path is volatile