def color.over

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

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

588def color.over(+front: Img.Color, back: Img.Color) -> Img.Color:
589  Img.Color{r, g, b, a} = front
590  Img.Color{x, y, z, w} = back
591  Img.Color{(r + x * (1.0 - a) : F32), (g + y * (1.0 - a) : F32),
592    (b + z * (1.0 - a) : F32), (a + w * (1.0 - a) : F32)}

Uses (5)

Used by (5)