def fill.coverage

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

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

1884def fill.coverage(f: Fill, es: List<&2, Edge>, +q: Point, +p: Point, +even: Bool) -> F32:
1885  Fill{box, cover} = f
1886  +cov = cover
1887  U.branch(F32, cover.present(cov), _ => cover.at(cov, p), _ => U.choose(F32, fill.inside(es, q, even), 1.0, 0.0))

Uses (11)

Used by (1)