nearest
fun nearest(point: Vector2, searchFrom: CompositionNode = composition.root as GroupNode): ShapeNodeNearestContour?
Content copied to clipboard
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