resolveWang
resolveWang(
index,corners):number
Defined in: tilemap/autotile.ts:183
Pick the tile whose 4 corner colors match corners ([TL, TR, BR, BL]); when no tile has
the exact combination, the nearest by corner-mismatch count is used, so a partial wang
set still paints. Returns 0 if the set is empty.
Parameters
Section titled “Parameters”corners
Section titled “corners”readonly number[]
Returns
Section titled “Returns”number