← back to roto on ba3a.dev

Package-level declarations

Types

Link copied to clipboard
class ArtFrame(val image: Raster, val durationMs: Int)

One published frame: what the artist painted, as RGBA at canvas size, shown for durationMs.

Link copied to clipboard
object ArtFrames

Reads what gets published from a handoff: the art layer of every frame, as RGBA at the sprite's size, with the frame's duration as the file holds it. The reference, the draft and any other layer are the artist's working material and stay in the handoff.

Link copied to clipboard
sealed interface ArtProgress

How far a clip's handoff has come. Only a finished clip can be published.

Link copied to clipboard
class BaseProfile(val profile: Profile, val folder: ProfileFolder)

The profile a variant recolours, as Publisher needs it: the profile and where its handoffs are.

Link copied to clipboard
@Serializable
data class ClipManifest(val action: String, val facing: String, val source: String, val mirrored: Boolean, val loop: Boolean, val frames: List<ManifestFrame>)

The small, generic manifest Roto publishes beside each clip's frames, for the consuming project's own tools to read: which clip it is, which filmed clip it came from — the same one, or its mirror — whether it loops, and its frames in order with how long each shows.

Link copied to clipboard

Reads and writes a published clip's manifest.

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

A clip manifest that is malformed or fails ClipManifest's validation.

Link copied to clipboard
object FramePick

Picks of frames for a Retime's keep.

Link copied to clipboard
@Serializable
data class ManifestFrame(val file: String, val durationMs: Int)

One published frame: its file relative to the project root, shown for durationMs.

Link copied to clipboard
object Mirror

Mirrors a published frame left to right across the whole canvas. The canvas is centred on the figure's root, so the mirrored figure stands where the original did, on the same ground row.

Link copied to clipboard

The frames a clip publishes: its handoff's art, retimed by the clip's Retime, and for a mirrored facing then flipped. Publisher writes these and the coverage reader compares against them, so the two cannot disagree about what a publish holds.

Link copied to clipboard
class Publisher(project: Project, repository: ProfileRepository, runner: ProcessRunner = SystemProcessRunner)

Publishes a profile's finished clips into the consuming project:

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

A publish Roto stopped: a clip not ready, a mirror it may not make, or an afterPublish command that failed.

Link copied to clipboard
@Serializable
data class Retime(val speedPercent: Int = FULL_SPEED, val keep: List<Int>? = null)

How a clip's finished art is published: faster or slower, and with only some of its frames. Stored per clip in profile.json; the handoff itself is never changed.