← back to roto on ba3a.dev

HandoffRender

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.

Constructors

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

Types

Link copied to clipboard
object Companion

Creation from a clip's stage outputs.

Link copied to clipboard
class Sources(val frames: List<Raster>, val boxes: FrameBoxes, val drafts: List<IndexedRaster>, val models: List<IndexedRaster>? = null)

One clip's stage outputs a handoff is made from: every frame, its boxes, and one draft per key frame.

Properties

Link copied to clipboard

one entry per key frame

Link copied to clipboard
val height: Int

canvas height in pixels

Link copied to clipboard

the project palette

Link copied to clipboard
val width: Int

canvas width in pixels