toTileGraphics

fun Iterable<Pair<Position, Tile>>.toTileGraphics(size: Size, tileset: TilesetResource): TileGraphics

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

fun Map<Position, Tile>.toTileGraphics(size: Size, tileset: TilesetResource): TileGraphics

Transforms the given Map to a TileGraphics with the given size and tileset.