def mask

gralha-coverage@0.1.0.1 · cover.bend:1245

import gralha-coverage@0.1.0.1/cover.bend as Cover
import Base

1245# Rasterize closed contours given as directed lines in pixel coordinates of a
1246# width by height grid, with `sub` scanlines per pixel row; nonzero winding, or
1247# even-odd when `even` holds.
1248# even-odd when `even` holds; with `trees` the mask carries the quadtree that
1249# block and pixel queries need, else only its rows of runs.
1250def mask(+xs: List<&2, CovLine>, +even: Bool, +width: U32, +height: U32, +sub: U32, +trees: Bool) -> CovMask:
1251  +box = lines.bounds(xs, 1000000000.0, 1000000000.0, F32.neg(1000000000.0), F32.neg(1000000000.0))
1252  mask.shape(rect.aligned(xs, box), xs, even, width, height, sub, box, trees)

Uses (9)

Used by (0)

No other definition uses this definition.