Jpeg.jpeg.ycck: def of gralha-jpeg-decode@0.1.0.1 Import: import gralha-jpeg-decode@0.1.0.1/jpeg.bend as Jpeg Lines 701-703 of gralha-jpeg-decode@0.1.0.1/jpeg.bend: https://jend.leeeet.dev/read.txt?path=gralha-jpeg-decode@0.1.0.1/jpeg.bend&start_line=701&end_line=703 import Base import gralha-image@0.1.0.1/image.bend as Img def jpeg.ycck(c: Img.Color, +k: F32) -> Img.Color: Img.Color{r, g, b, a} = c Img.Color{jpeg.channel(((1.0 - r) * k : F32)), jpeg.channel(((1.0 - g) * k : F32)), jpeg.channel(((1.0 - b) * k : F32)), 1.0} 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.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 https://jend.leeeet.dev/definition.txt?path=gralha-jpeg-decode@0.1.0.1/jpeg.bend&name=jpeg.channel