def mask.scan
import gralha-coverage@0.1.0.1/cover.bend as Coverimport Base
1158# Even-odd fills rely on the winding parity, which only the sub-scanline scan follows.
1159def mask.scan(clipped: List<&2, CovLine> & U32, even: Bool, +h: U32, +sub: U32, +w: U32) -> List<&2, List<&2, Run>>:
1160 (xs, n) = clipped
1161 match even:
1162 case True{}: scan.rows(h, sub, lines.sort(xs), True{}, w)
1163 case False{}: mask.arrays(xs, n, h, sub, w)