def brush.url

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

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

2440def brush.url(+scan: U.Scan, +all: List<&2, XML.Element>, box: Bounds, w: F32, h: F32, opacity: F32, patterns: XML.Element -> Bounds -> F32 -> F32 -> F32 -> Brush) -> Brush:
2441  U.Scan{url, fallback} = scan
2442  brush.resource(resource.find(all, U.drop(U.unquote(U.trim.both(url)), "#")), all, box, w, h, opacity,
2443    U.choose(String, U.string.equal(U.trim(fallback), ""), "none", U.trim(fallback)), patterns)

Uses (15)

Used by (1)