def filter.matrix
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport 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)})