render

fun render(artboard: Artboard, stateMachine: StateMachine, fit: Fit = RenderingDefaults.defaultFit(), clearColor: Int = RenderingDefaults.CLEAR_COLOR): RenderBuffer

Synchronously renders the artboard/state-machine into this software buffer.

Throws

If artboard or stateMachine are not owned by this buffer's worker, or if stateMachine was not created from artboard.

If this buffer's surface has been closed or the worker has been released.

If the native draw-to-buffer operation fails.