def color.named

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

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-image@0.1.0.1/image.bend as Img

683def color.named(s: String) -> Img.Color:
684  +code = color.named.code(s)
685  color.rgb(U.choose(U32, U32.is_lt(code, 16777216), code, 0))

Uses (7)

Used by (1)