Svg.color.over: def of gralha-svg-render@0.1.0.1 Import: import gralha-svg-render@0.1.0.1/svg.bend as Svg Lines 588-592 of gralha-svg-render@0.1.0.1/svg.bend: https://jend.leeeet.dev/read.txt?path=gralha-svg-render@0.1.0.1/svg.bend&start_line=588&end_line=592 import Base import gralha-image@0.1.0.1/image.bend as Img def color.over(+front: Img.Color, back: Img.Color) -> Img.Color: Img.Color{r, g, b, a} = front Img.Color{x, y, z, w} = back Img.Color{(r + x * (1.0 - a) : F32), (g + y * (1.0 - a) : F32), (b + z * (1.0 - a) : F32), (a + w * (1.0 - a) : F32)} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.sub https://jend.leeeet.dev/definition.txt?path=gralha-image@0.1.0.1/image.bend&name=Color