drawComposition

fun drawComposition(documentBounds: CompositionDimensions = defaultCompositionDimensions, composition: Composition? = null, cursor: GroupNode? = composition?.root as? GroupNode, drawFunction: CompositionDrawer.() -> Unit): Composition

Creates a Composition. The draw operations contained inside the drawFunction do not render graphics to the screen, but populate the Composition instead.