render

abstract fun render(initial: KiteRaster? = null, content: () -> Unit): KiteRaster(source)

Paints content through the canvas into a new raster of the box. While content runs, every paint of the canvas goes to that raster instead of its target, and the content may clip, open groups and apply soft masks as usual. The raster starts as a copy of initial, which must have this step's size, or transparent when it is null. The clips in force when the step began do not apply here: draw applies them.