openrndr / org.openrndr.math / chaikinSmooth

chaikinSmooth

fun chaikinSmooth(polyline: List<Vector2>, iterations: Int = 1): List<Vector2> (source)

Chaikin's corner cutting algorithm generates an approximating curve from a polyline

Interactive Demo

Parameters

polyline -

iterations -