openrndr / org.openrndr.shape / kotlin.collections.List

Extensions for kotlin.collections.List

compound

convert a list of Shape items into a single Shape compound

val List<Shape>.compound: Shape

cumsum

fun List<Int>.cumsum(): List<Int>

merge

fun List<ShapeNodeIntersection>.merge(threshold: Double = 0.5): List<ShapeNodeIntersection>
fun List<Double>.merge(f: (Double, Double) -> Boolean): List<Double>

shape

convert a List of ShapeContour items to a Shape

val List<ShapeContour>.shape: Shape