toTileComposite

fun Iterable<Pair<Position, Tile>>.toTileComposite(size: Size): TileComposite

Transforms an Iterable of Position to Tiles to a TileImage with the given size and tileset.

fun Map<Position, Tile>.toTileComposite(size: Size): TileComposite

Transforms the given Map to a TileComposite with the given size.