def pattern.build
gralha-svg-render@0.1.0.1 · svg.bend:3016
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
import gralha-xml-doc@0.1.0.1/xml.bend as XML
import gralha-image@0.1.0.1/image.bend as Img
3016def pattern.build(+node: XML.Element, +all: List<&2, XML.Element>, active: List<&2, String>, box: Bounds, w: F32, h: F32, opacity: F32,
3017 build: String -> F32 -> List<&2, XML.Element> -> Matrix -> F32 -> F32 -> List<&2, Scene<Brush>>, +pixels: F32) -> Brush:
3018 XML.Element{n, as, kids, txt} = node
3019 U.branch(Brush, U.strings.has(active, XML.attr.get(as, "id", "")), _ => Solid{Img.clear(), Img.clear()},
3020 _ => pattern.tile(pattern.resolve(32n, node, all), box, w, h, opacity, build, pixels))