def filter.morphology.sample
gralha-svg-render@0.1.0.1 · svg.bend:4651
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
4651def filter.morphology.sample(left: Nat, +index: F32, +direction: Point, +dilate: Bool, +input: FilterInput, +p: Point, +linear: Bool, acc: Img.Color) -> Img.Color:
4652 match left:
4653 case 0n: acc
4654 case 1n+rest:
4655 filter.morphology.sample(rest, (index + 1.0 : F32), direction, dilate, input, p, linear,
4656 filter.morphology.join(acc, filter.input.color(input, point.add(p, point.scale(direction, index)), linear), dilate))