def filter.matrix

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

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-image@0.1.0.1/image.bend as Img

4469def filter.matrix(rows: ColorMatrix, c: Img.Color) -> Img.Color:
4470  ColorMatrix{r, g, b, a} = rows
4471  +straight = color.straight(c)
4472  color.premultiply(Img.Color{filter.row(r, straight), filter.row(g, straight), filter.row(b, straight), filter.row(a, straight)})

Uses (5)

Used by (1)