← back to roto on ba3a.dev

Package-level declarations

Types

Link copied to clipboard

Renders what one frame shows inside its FrameBoxes box, at factor times the canvas size — the draft renders at four times the target and reduces later. Each output pixel takes the frame pixel under its centre, nearest-neighbour: no resampling filter, so every output colour or label is one the frame really held. What lies beyond the frame's edge is empty.

Link copied to clipboard
@Serializable
data class DepthSettings(val follow: Boolean = false, val smoothing: Int = 15)

How a clip's figure is kept one size when it walks toward or away from the camera; stored per clip in profile.json.

Link copied to clipboard
class FrameBoxer(cache: StageCache)

The frame box stage: a clip's FrameBoxes by the FrameBoxLayout, cached under the masks (for the ground line), the root track, the profile's ScaleSettings and the project's Canvas. Moving the scale marks or resizing the canvas lays the boxes out again and touches nothing upstream. The clip's DepthSettings is part of the key too.

Link copied to clipboard
@Serializable
data class FrameBoxes(val canvas: Canvas, val scaleX: List<Double>, val scaleY: List<Double>, val groundY: List<Int>, val centreX: List<Int>)

Where the project's canvas sits on each frame of a clip, in working-frame pixels.

Link copied to clipboard

Lays the canvas over every frame of a clip: scaled by the profile's ScaleSettings, centred across on each frame's root from the RootTrack, and with the canvas's ground row on the clip's ground line. A clip whose figure walks toward or away from the camera, per its DepthSettings, takes its scale and ground line from the figure in each frame instead.

Link copied to clipboard
@Serializable
data class ScaleMarks(val clip: String, val frame: Int, val headTopY: Int, val feetY: Int)

Where the artist marked a standing figure: in frame of the clip clip (its id), the topmost row of the head at headTopY and the bottom row of the feet at feetY, in working-frame pixels.

Link copied to clipboard
@Serializable
data class ScaleSettings(val bodyHeight: Int, val marks: ScaleMarks, val squash: Double = 1.0)

How big a profile's figure is drawn, set once per profile; stored in profile.json.

Functions

Link copied to clipboard

A first guess at a figure's height on canvas, before the artist tunes it.