← back to roto on ba3a.dev

SheetKeyedFrame

@Serializable
data class SheetKeyedFrame(val frame: SheetRect, val rotated: Boolean, val trimmed: Boolean, val spriteSourceSize: SheetRect, val sourceSize: SheetSize, val duration: Int)

A frame of the keyed shape, whose key is its name.

Constructors

Link copied to clipboard
constructor(frame: SheetRect, rotated: Boolean, trimmed: Boolean, spriteSourceSize: SheetRect, sourceSize: SheetSize, duration: Int)

Properties

Link copied to clipboard

how long the frame shows, in milliseconds

Link copied to clipboard

its cell in the sheet

Link copied to clipboard

whether the cell is turned

Link copied to clipboard

the size of the source frame

Link copied to clipboard

the part of the source frame the cell holds

Link copied to clipboard

whether the frame's empty border is cut off