def filter.kernel.raw

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

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base

4815def filter.kernel.raw(n: Nat, +i: F32, +radius: F32, +sigma: F32, +direction: Point) -> List<&2, FilterTap>:
4816  match n:
4817    case 0n: Nil{}
4818    case 1n+d:
4819      +x = (i - radius : F32)
4820      Con{FilterTap{point.scale(direction, x), F32.exp((F32.neg(0.5) * x * x / (sigma * sigma) : F32))}, filter.kernel.raw(d, (i + 1.0 : F32), radius, sigma, direction)}

Uses (12)

Used by (1)