← back to roto on ba3a.dev

ModelFrame

class ModelFrame(val raster: Raster, val durationMs: Int)

One frame of a ModelClip: its picture and how long it shows.

Constructors

Link copied to clipboard
constructor(raster: Raster, durationMs: Int)

Properties

Link copied to clipboard

how long the frame shows, at least 1 ms

Link copied to clipboard

the frame at canvas size, straight alpha

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Equal when the picture and the duration are.

Link copied to clipboard
open override fun hashCode(): Int

Consistent with equals.

Link copied to clipboard
open override fun toString(): String

The size and duration, for messages and tests.