openrndr / org.openrndr.shape / ImageNode

ImageNode

class ImageNode : CompositionNode (source)

a CompositionNode that holds a single image ColorBuffer

Constructors

<init>

a CompositionNode that holds a single image ColorBuffer

ImageNode(image: ColorBuffer, x: Double, y: Double, width: Double, height: Double)

Properties

bounds

a Rectangle that describes the bounding box of the contents

val bounds: Rectangle

height

var height: Double

image

var image: ColorBuffer

width

var width: Double

x

var x: Double

y

var y: Double

Extension Functions

findAll

fun CompositionNode.findAll(filter: (CompositionNode) -> Boolean): List<CompositionNode>

findGroups

find all descendant GroupNode nodes, including potentially this node

fun CompositionNode.findGroups(): List<GroupNode>

findImages

find all descendant ImageNode nodes, including potentially this node

fun CompositionNode.findImages(): List<ImageNode>

findShapes

find all descendant ShapeNode nodes, including potentially this node

fun CompositionNode.findShapes(): List<ShapeNode>

findTerminals

fun CompositionNode.findTerminals(filter: (CompositionNode) -> Boolean): List<CompositionNode>

remove

remove node from its parent CompositionNode

fun CompositionNode.remove(): Unit

visitAll

visit this CompositionNode and all descendant nodes and execute visitor

fun CompositionNode.visitAll(visitor: CompositionNode.() -> Unit): Unit