def filter.input.color

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

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U
import gralha-image@0.1.0.1/image.bend as Img

4434def filter.input.color(input: FilterInput, p: Point, linear: Bool) -> Img.Color:
4435  FilterInput{raster, region, alpha, standard} = input
4436  +c = raster.color(raster, p, linear)
4437  U.branch(Img.Color, alpha, _ => color.alpha.only(c), _ => c)

Uses (7)

Used by (5)