CompositionDrawer
class CompositionDrawer(documentBounds: CompositionDimensions, composition: Composition?, cursor: GroupNode?)
Content copied to clipboard
A Drawer-like interface for the creation of Compositions This should be easier than creating Compositions manually
Constructors
CompositionDrawer
Link copied to clipboard
fun CompositionDrawer(documentBounds: CompositionDimensions = defaultCompositionDimensions, composition: Composition? = null, cursor: GroupNode? = composition?.root as? GroupNode)
Content copied to clipboard
Functions
composition
Link copied to clipboard
contour
Link copied to clipboard
difference
Link copied to clipboard
fun difference(shape: Shape, searchFrom: CompositionNode = composition.root as GroupNode): Shape
Content copied to clipboard
distances
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)
duplicate
Link copied to clipboard
Returns a deep copy of a CompositionNode. If insert is true the copy is inserted at cursor.
intersections
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
isolated
Link copied to clipboard
lineSegment
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
lineSegments
Link copied to clipboard
fun lineSegments(lineSegments: List<LineSegment>, insert: Boolean = true): List<ShapeNode?>
Content copied to clipboard
nearest
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
rectangle
Link copied to clipboard
rectangles
Link copied to clipboard
textOnContour
Link copied to clipboard
fun textOnContour(text: String, contour: ShapeContour, insert: Boolean = true): TextNode
Content copied to clipboard
transform
Link copied to clipboard
Properties
composition
Link copied to clipboard
fillOpacity
Link copied to clipboard
miterlimit
Link copied to clipboard
strokeOpacity
Link copied to clipboard
strokeWeight
Link copied to clipboard
transformMode
Link copied to clipboard
visibility
Link copied to clipboard