def style.paint
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
import gralha-text-scan@0.1.0.1/scan.bend as U
import gralha-css-style@0.1.0.1/css.bend as CSS
import gralha-image@0.1.0.1/image.bend as Img
2874def style.paint(s: String, +current: String, opacity: F32) -> Img.Color:
2875 +paint = s
2876 color.fade(color(U.choose(String, U.string.equal(CSS.css.lower(U.trim.both(paint)), "currentcolor"), current, paint)), opacity)
Uses (9)
Used by (0)
No other definition uses this definition.