def brush.keyword

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

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

2458def brush.keyword(+k: U32, +s: String, current: String, +opacity: F32) -> Brush:
2459  U.choose(Brush, U32.is_eq(k, 2) || U32.is_eq(k, 3), PendingContext{U32.is_eq(k, 3), opacity},
2460    brush.solid(color(U.choose(String, U32.is_eq(k, 1), current, s)), opacity))

Uses (9)

Used by (1)