CompositionDrawer
class CompositionDrawer( documentBounds: CompositionDimensions = defaultCompositionDimensions, composition: Composition? = null, cursor: GroupNode? = composition?.root as? GroupNode)
Content copied to clipboard
A Drawer-like interface for the creation of Compositions This should be easier than creating Compositions manually
Constructors
Link copied to clipboard
fun CompositionDrawer( documentBounds: CompositionDimensions = defaultCompositionDimensions, composition: Composition? = null, cursor: GroupNode? = composition?.root as? GroupNode)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun difference(shape: Shape, searchFrom: CompositionNode = composition.root as GroupNode): Shape
Content copied to clipboard
Link copied to clipboard
fun CompositionNode.distances(point: Vector2): List<ShapeNodeNearestContour>
Content copied to clipboard
fun distances(point: Vector2, searchFrom: CompositionNode = composition.root as GroupNode): List<ShapeNodeNearestContour>
Content copied to clipboard
Find distances to each contour in the composition tree (or starting node)
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 CompositionNode.intersections(shape: Shape, mergeThreshold: Double = 0.5): List<ShapeNodeIntersection>
Content copied to clipboard
fun CompositionNode.intersections(contour: ShapeContour, mergeThreshold: Double = 0.5): List<ShapeNodeIntersection>
Content copied to clipboard
fun intersections( shape: Shape, searchFrom: CompositionNode = composition.root as GroupNode, mergeThreshold: Double = 0.5): List<ShapeNodeIntersection>
Content copied to clipboard
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>
Content copied to clipboard
Test a given contour
against org.openrndr.shape.contours in the composition tree
Link copied to clipboard
Link copied to clipboard
fun lineSegment(lineSegment: LineSegment, insert: Boolean = true): ShapeNode?
Content copied to clipboard
fun lineSegment( start: Vector2, end: Vector2, insert: Boolean = true): ShapeNode?
Content copied to clipboard
Link copied to clipboard
fun lineSegments(lineSegments: List<LineSegment>, insert: Boolean = true): List<ShapeNode?>
Content copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
fun textOnContour( text: String, contour: ShapeContour, insert: Boolean = true): TextNode
Content copied to clipboard
Link copied to clipboard