def cover.build

gralha-svg-render@0.1.0.1 · svg.bend:4112

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-coverage@0.1.0.1/cover.bend as Cov

4112# With `trees` the mask carries the quadtree that clip and pixel queries
4113# need; a fill painted directly keeps only its rows of runs.
4114def cover.build(lines: Cov.CovLines, +even: Bool, +frame: Raster, +sub: U32, +trees: Bool) -> Cover:
4115  Raster{origin, step, width, height, depth, linear, pixels} = frame
4116  Cover{Cov.mask.lined(lines, even, width, height, sub, trees), origin, step}

Uses (6)

Used by (1)