compose

fun compose(function: Composite.() -> Unit): Composite(source)

Creates a Composite object and allows configuration of its layers and effects within the provided function.

Return

the configured Composite object.

Parameters

function

the lambda function used to configure the Composite. It is invoked with the Composite instance as the receiver.