smoothen

private fun smoothen(tileMap: TileMap, threshold: Double = 1.0)

Smoothen the map by clustering landmass and oceans with probability threshold. TileInfos with more than 3 land neighbours are converted to land. TileInfos with more than 3 water neighbours are converted to water.

Sources

jvm source
Link copied to clipboard