openrndr / org.openrndr.draw / isolated

isolated

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

Pushes style, view- and projection matrix, calls function and pops.

Parameters

function - the function that is called in the isolation