openrndr / org.openrndr.shape / ShapeNode

ShapeNode

class ShapeNode : CompositionNode (source)

Constructors

<init>

ShapeNode(shape: Shape)

Properties

bounds

val bounds: Rectangle

shape

var shape: Shape

Functions

conflate

Applies transforms of all ancestor nodes and returns a new detached ShapeNode with conflated transform

fun conflate(): ShapeNode

copy

fun copy(id: String? = this.id, parent: CompositionNode? = null, transform: Matrix44 = this.transform, fill: CompositionColor = this.fill, stroke: CompositionColor = this.stroke, shape: Shape = this.shape): ShapeNode

equals

fun equals(other: Any?): Boolean

flatten

Applies transforms of all ancestor nodes and returns a new detached shape node with identity transform and transformed Shape

fun flatten(): ShapeNode

hashCode

fun hashCode(): Int

Extension Functions

filter

fun CompositionNode.filter(filter: (CompositionNode) -> Boolean): CompositionNode?

map

fun CompositionNode.map(mapper: (CompositionNode) -> CompositionNode): CompositionNode