rounded

fun Polygon.rounded(radius: Double, filter: (index: Int, Point) -> Boolean = { _,_ -> true }): Path

Creates a rounded shape from a Polygon. The resulting shape is essentially a polygon with the vertices rounded using a semicircular curve.

Return

a Path for the new shape

Parameters

radius

for each point

filter

deciding which points to apply the radius to

See also

with config for control over radius at each point


fun Polygon.rounded(config: (index: Int, Point) -> Double): Path

Creates a rounded shape from a Polygon. The resulting shape is essentially a polygon with the vertices rounded using a semicircular curve.

Return

a Path for the new shape

Parameters

config

determining the radius for each point in the polygon (with the given index)