def filter.blend.setlum
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
import gralha-image@0.1.0.1/image.bend as Img
4595def filter.blend.setlum(+c: Img.Color, l: F32) -> Img.Color:
4596 Img.Color{r, g, b, a} = c
4597 +delta = (l - filter.blend.lum(c) : F32)
4598 filter.blend.clip(Img.Color{(r + delta : F32), (g + delta : F32), (b + delta : F32), 1.0})