nearest

fun nearest(point: Vector2, searchFrom: CompositionNode = composition.root as GroupNode): ShapeNodeNearestContour?

Search for a point on a contour in the composition tree that's nearest to point

Return

an optional org.openrndr.shape.ShapeNodeNearestContour instance

Parameters

point

the query point

searchFrom

a node from which the search starts, defaults to composition root

fun CompositionNode.nearest(point: Vector2): ShapeNodeNearestContour?