← back to roto on ba3a.dev

SheetFrame

data class SheetFrame(val filename: String, val x: Int, val y: Int, val width: Int, val height: Int, val durationMs: Int)

One frame as a sheet holds it.

Constructors

Link copied to clipboard
constructor(filename: String, x: Int, y: Int, width: Int, height: Int, durationMs: Int)

Properties

Link copied to clipboard

how long the frame shows, in milliseconds

Link copied to clipboard

<stem>_<index>.png, the index within its animation padded to three digits

Link copied to clipboard
val height: Int

the height of its cell

Link copied to clipboard
val width: Int

the width of its cell

Link copied to clipboard
val x: Int

the left edge of its cell in the sheet

Link copied to clipboard
val y: Int

the top edge of its cell in the sheet