snapshot

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

Deprecated

Use render(...) instead.

Replace with

render(artboard, stateMachine, fit, clearColor)

Backward-compatible alias for render.

See also

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.