hex-world
    Preparing search index...

    Function averageTerrainColor

    • Mean color of the solid terrain in a palette — the biome haze color to hand SkyDomeOptions.groundTint, so a desert map's horizon goes sandy and a tundra map's goes pale. Liquids are skipped: a big lake shouldn't pull the whole sky blue.

      Parameters

      • terrain: Iterable<{ color: Color; isWater?: boolean }>

      Returns Color