def raster.horizontal

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

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

2258def raster.horizontal(+r: Raster, +x: F32, +y: F32, +dx: F32) -> Img.Color:
2259  U.branch(Img.Color, F32.is_eq(dx, 0.0), _ => raster.pixel(r, x, y),
2260    _ => color.mix(raster.pixel(r, x, y), raster.pixel(r, (x + 1.0 : F32), y), dx))

Uses (8)

Used by (1)