← back to roto on ba3a.dev

pack

fun pack(animations: List<SheetAnimation>, maxWidth: Int): PackedSheet

The sheet of animations, as many cells wide as fit in maxWidth pixels, but at least one and no more than there are frames. All frames are of one size and no two animations share a stem. A sheet over 16384 px on either side is refused with an IllegalArgumentException naming its size.