isolated

fun isolated(function: Drawer.() -> Unit)(source)

Executes the provided drawing function in an isolated scope, preserving the current drawing state and then restoring it after the function is executed. The ortho projection and custom view transformation are applied during the isolated drawing session.

Parameters

function

the drawing function to be applied within the isolated scope of the Drawer.