← back to roto on ba3a.dev

Sheet

@Serializable
@SerialName(value = "sheet")
data class Sheet(val path: @Serializable(with = PathTemplateSerializer::class) PathTemplate, val layout: SheetLayout = SheetLayout.ARRAY, val maxWidth: Int = DEFAULT_MAX_WIDTH) : OutputFormat

A sprite sheet with its Aseprite-style JSON.

Constructors

Link copied to clipboard
constructor(path: @Serializable(with = PathTemplateSerializer::class) PathTemplate, layout: SheetLayout = SheetLayout.ARRAY, maxWidth: Int = DEFAULT_MAX_WIDTH)

Properties

Link copied to clipboard

how the JSON holds the frames

Link copied to clipboard

the widest the sheet may be in pixels, though never narrower than one cell

Link copied to clipboard
open override val path: @Serializable(with = PathTemplateSerializer::class) PathTemplate

where the sheet and its JSON go, without an extension; {frame} is not allowed