← back to roto on ba3a.dev

Package-level declarations

Types

Link copied to clipboard
class HandoffException(message: String, cause: Throwable? = null) : IOException

A handoff Roto will not re-render, because doing so would change or lose the artist's work.

Link copied to clipboard
class HandoffFrame(val durationMs: Int, val reference: IndexedRaster, val draft: IndexedRaster, val model: IndexedRaster? = null)

One key frame of a handoff: shown for durationMs, with its reference, its draft and, when the clip follows a model, the model's frame for it.

Link copied to clipboard

Builds a clip's handoff sprite from a HandoffRender, keeping everything the artist made.

Link copied to clipboard
class HandoffRender(val palette: Palette, val width: Int, val height: Int, val frames: List<HandoffFrame>)

What Roto writes into a clip's handoff: the palette, the canvas size, and one HandoffFrame per key frame. Everything is in palette labels — palette index plus one, 0 transparent — which are the handoff's own palette indices.

Link copied to clipboard

Writes a clip's handoff .ase, keeping the artist's layers of the file already there by HandoffMerge. An existing file that cannot be read — damaged, or saved in a form Roto does not read — fails the write with its reason, and is left exactly as it was: a file that may hold the artist's painting is never overwritten unread.