def fill.inside

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

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

539def fill.inside(edges: List<&2, Edge>, p: Point, even: Bool) -> Bool:
540  +w = winding(edges, p)
541  F32.is_gt(F32.abs(U.choose(F32, even, (w % 2.0 : F32), w)), 0.5)

Uses (10)

Used by (1)