draw

fun Composition.draw(cursor: GroupNode? = this.root as? GroupNode, drawFunction: CompositionDrawer.() -> Unit)(source)

Draws content into an existing composition using the provided drawing function.

Parameters

cursor

an optional GroupNode that serves as the starting point for drawing. Defaults to the root of the composition if not provided.

drawFunction

the drawing logic to be executed using a CompositionDrawer. This function should contain instructions to draw content into the composition.