CompositionDrawer
class CompositionDrawer(documentBounds: CompositionDimensions = defaultCompositionDimensions, composition: Composition? = null, cursor: GroupNode? = composition?.root as? GroupNode)(source)
A Drawer-like interface for the creation of Compositions This should be easier than creating Compositions manually
Constructors
Link copied to clipboard
constructor(documentBounds: CompositionDimensions = defaultCompositionDimensions, composition: Composition? = null, cursor: GroupNode? = composition?.root as? GroupNode)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun distances(point: Vector2, searchFrom: CompositionNode = composition.root as GroupNode): List<ShapeNodeNearestContour>
Find distances to each contour in the composition tree (or starting node)
Link copied to clipboard
Link copied to clipboard
Returns a deep copy of a CompositionNode. If insert is true the copy is inserted at cursor.
Link copied to clipboard
fun intersections(shape: Shape, searchFrom: CompositionNode = composition.root as GroupNode, mergeThreshold: Double = 0.5): List<ShapeNodeIntersection>
Test a given shape
against org.openrndr.shape.contours in the composition tree
fun intersections(contour: ShapeContour, searchFrom: CompositionNode = composition.root as GroupNode, mergeThreshold: Double = 0.5): List<ShapeNodeIntersection>
Test a given contour
against org.openrndr.shape.contours in the composition tree
Link copied to clipboard
fun CompositionNode.intersections(shape: Shape, mergeThreshold: Double = 0.5): List<ShapeNodeIntersection>
fun CompositionNode.intersections(contour: ShapeContour, mergeThreshold: Double = 0.5): List<ShapeNodeIntersection>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard